[squeak-dev] Time now print24
eliot.miranda at gmail.com
Thu Jul 7 16:33:24 UTC 2016
how does one produce a nice timestamp, simply date and time as in
Date today mmddyyyy, ' ', Time now print24 '7/7/2016 09:22:40.914'
.914, ah, nanos. How useful. Let's get rid of them. No nanos: accessor so
Date today mmddyyyy, ' ', (Time now nanos: 0) print24 => MNU
but there's a seconds accessor, so
Date today mmddyyyy, ' ', (Time now seconds: Time now seconds; print24)
?? So seconds: is private, and isn't the dual of Time seconds:
^ self second
^ self asDuration seconds
"Answer the number of seconds the receiver represents."
^seconds rem: SecondsInMinute
Looks broken to me.
Personally I think print24 should not print sub seconds.
cc'ing to Pharo because I want this timestamp to be the same in both
dialects for a profiling tool we want to use in both dialects.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev