Login  Register

Re: DateTime now nanos

Posted by Jeff Gray on Jun 15, 2020; 7:08am
URL: https://forum.world.st/DateTime-now-nanos-tp5118503p5118511.html

Thanks Steph.

Running a similar experiment using ZTimestamp:

|ts1 ts2|
ts1 := ZTimestamp now.
tsNumber := ts1 asUnixTime.
ts2 := ZTimestamp fromUnixTime: tsNumber.
Transcript cr; show: ts1.
Transcript cr; show: ts2.

I get the output:
2020-06-15T07:05:59Z
2020-06-15T07:05:59Z




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html