Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Midnight time
Message
From
11/02/2020 03:52:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/02/2020 15:12:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01672998
Message ID:
01673021
Views:
62
>>I don't think so. First, I am using a military time, 00:00 to 23:59. So, noon is 12:00 and it is just a number.

Nope, that's not military time. That's normal 24 hour time. The military time has no colon and treats the time as numbers, where "hundred" means hours. It's a code.

>>I am just specifying From and To time (e.g. From 00:00 to 23:59 or from 01:30 to 13:20 and so on). Then I am simply checking if the current time is within the specified From and To times. I would say, that the only problem the program would have is if the current time is 23:59:59 and a fraction of a second. But I don't care about this case.
>
>To clarify --- the problems that I mentioned could arise if you selected 24:00:00 notation for midnight. By selecting the 00:00:00 notation you avoided them.

While 24:00:00 may be required in some cases - those cases are for display only. The one case I know is on railway, where a train arriving at midnight arrives at 24:00, while the train leaving at the same time leaves at 0:00. The display only value should be stored (or at least passed) as 23:59:59.999 and the problem would be solved. Or at least hidden.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform