Last active
April 26, 2019 08:48
-
-
Save bertrand-lupart/c87318e242aead7695761dc0ec975606 to your computer and use it in GitHub Desktop.
sub-second epoch Pike
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> object t = System.Time(); t->sec; t->usec; t->usec_full; | |
(1) Result: 1556201631 | |
(2) Result: 393431 | |
(3) Result: 1556201631393970 | |
> object s = Calendar.parse("%Y-%M-%aT%h:%m:%s.%f","2019-04-25T15:10:03.193000+00:00"); | |
> s->f_unix_time(); | |
(1) Result: 1556197803.193 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment