Liste des Groupes | Revenir à co vms |
On 9/17/2024 3:42 PM, Tom Wade wrote:The Bazaar philosophy of PHP is very obvious for this topic:The traditional VMS time text format is pretty good. Very difficultI 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.
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
Les messages affichés proviennent d'usenet.