Skip to content

Instantly share code, notes, and snippets.

@Altreus
Created November 8, 2018 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Altreus/6646f2effd9534f9746f5b705a7be8ab to your computer and use it in GitHub Desktop.
Save Altreus/6646f2effd9534f9746f5b705a7be8ab to your computer and use it in GitHub Desktop.
{"uptime": {"0": null},"total-requests": 0,"successful-requests": 0}
@Xliff
Copy link

Xliff commented Nov 8, 2018

Here's what I get when I serialize DateTime objects:

$ perl6 -e 'use JSON::Fast; my %c = ( uptime => DateTime.now, later_time => DateTime.now.later(hours => 2).later( minutes => 16) ); say to-json(%c)'
{
  "uptime": "2018-11-08T05:09:58.593564-05:00",
  "later_time": "2018-11-08T07:25:58.595458-05:00"
}

And my Perl6 version is:

This is Rakudo version 2018.10-78-g8b93ec9f5 built on MoarVM version 2018.10-72-g4fbaeee5f
implementing Perl 6.d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment