Epoch Seconds to DateTime
AUTHOR
stmuk
You want to convert as seconds past the epoch to a datetime (ISO 8601)
#!/usr/bin/env raku
use v6;
my $now = 1417793234;
my $dt = DateTime.new($now);
say $dt;
# vim: expandtab shiftwidth=4 ft=perl6
stmuk
You want to convert as seconds past the epoch to a datetime (ISO 8601)
#!/usr/bin/env raku
use v6;
my $now = 1417793234;
my $dt = DateTime.new($now);
say $dt;
# vim: expandtab shiftwidth=4 ft=perl6
The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.
Built with Podlite ā the markup and publishing tools behind this site.