Sujet : Re: VMS Software Bootcamp 2024
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 18. Sep 2024, 00:06:21
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vcd21c$3nnaq$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
On 9/17/2024 3:42 PM, Tom Wade wrote:
I must admit I was a bit surprised to see it written in the way it was
as I am much more used to a 24-hour clock. I don't know if that's more
of a European thing than a US thing however.
I was quite disappointed to see it written that way. VMS has always used 24 hour time, and the traditional DECUS US agendas were also listed that way, with sessions starting at 08:00 and some days ending at 23:00.
The traditional VMS time text format is pretty good. Very difficult
to misunderstand.
Of course in most programming languages today you can specify
the format to use.
$ show time
17-SEP-2024 19:03:14
$ type now.groovy
import java.text.*
df1 = new SimpleDateFormat("HH:mm")
df2 = new SimpleDateFormat("hh:mm a")
now = new Date()
println(df1.format(now))
println(df2.format(now))
$ groovy now.groovy
19:03
07:03 PM
$ type now.py
from time import *
now = time()
print(strftime('%H:%M', localtime(now)))
print(strftime('%I:%M %p', localtime(now)))
$ python now.py
19:03
07:03 PM
Arne