Skip to content

Instantly share code, notes, and snippets.

@bertrand-lupart
Last active April 26, 2019 08:48
Show Gist options
  • Save bertrand-lupart/c87318e242aead7695761dc0ec975606 to your computer and use it in GitHub Desktop.
Save bertrand-lupart/c87318e242aead7695761dc0ec975606 to your computer and use it in GitHub Desktop.
sub-second epoch Pike
> 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