Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding time of day functions
Message
 
 
To
20/12/2018 14:02:45
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
C#
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01664711
Message ID:
01664732
Views:
40
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform