DateTime to Epoch Seconds
AUTHOR
stmuk
You want a datetime (ISO 8601) as seconds past the epoch.
#!/usr/bin/env raku
use v6;
my $dt = DateTime.new("1981-06-17T00:00:00Z");
say $dt.posix;
# vim: expandtab shiftwidth=4 ft=perl6
stmuk
You want a datetime (ISO 8601) as seconds past the epoch.
#!/usr/bin/env raku
use v6;
my $dt = DateTime.new("1981-06-17T00:00:00Z");
say $dt.posix;
# vim: expandtab shiftwidth=4 ft=perl6
Resoures
Learning
The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.