Epoch Seconds to DateTime
Author: stmuk
You want to convert as seconds past the epoch to a datetime (ISO 8601)
Source code: 03-03-epoch-to-datetime.p6
#!/usr/bin/env perl6 use v6; my $now = 1417793234; my $dt = DateTime.new($now); say $dt;
Author: stmuk
You want to convert as seconds past the epoch to a datetime (ISO 8601)
Source code: 03-03-epoch-to-datetime.p6
#!/usr/bin/env perl6 use v6; my $now = 1417793234; my $dt = DateTime.new($now); say $dt;