Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Military Time question
Message
From
09/12/2002 04:12:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/12/2002 20:36:28
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00729235
Message ID:
00730811
Views:
10
>Okay, a quick one - is 12:00 midnight "00:00" in military time or is it "24:00" (you can tell I have never been in the military)? Likewise, is the range of acceptable values "00:01" to "24:00" or "00:00" to "23:59"? And finally, is it possible that both 00:00 and 24:00 are acceptable values?
>
>Albert

Albert,
AFAIK it's 24 hour format w/o colons. 0000 = 2400 interchangebly (but I think they'd prefer to reserve 0000 for an operation's start time?).
From VFP point it looks like military time is :

substr(ttoc(ltDatetime,1),9,4)
or:
int(val(substr(ttoc(ltDatetime,1),9,4)))

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform