Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding time of day functions
Message
 
 
À
20/12/2018 14:02:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
C#
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01664711
Message ID:
01664732
Vues:
41
>>Thank you. I also found that I can specify the time as
>>
>>tsMidnight = TimeSpan.Parse("00:00:00");
>>
>>And then compare this with the current time. The date is not important, in this case for me.
>>
>>Thank you and Naoto for your help!
>
>Oh you meant compare time to time? You don't need to write that as string and parse simply initialize as:
>
>new TimeSpan(0,0,0);
>
>or:
>DateTime.Today.TimeOfDay

Thank you. I didn't know I could specify it that way.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform