Skip to content
Parse duration strings into seconds
Perl 6
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
lib/Time/Duration
t
.gitignore
.travis.yml
META6.json
README.pod6

README.pod6

=begin pod =NAME Time::Duration::Parser =begin SYNOPSIS use Time::Duration::Parser; my $time-string = "5 days 4 hours 52 minutes 3 seconds"; my $s = duration-to-seconds($time-string); say "$time-string -> $s seconds"; =end SYNOPSIS =begin DESCRIPTION This module exports a single subroutine C that turns a string like "3 days 29 minutes" into a number of seconds. Note, for B and B the values are approximated as 30 days and 365 days respectively. =end DESCRIPTION =AUTHOR Jonathan Scott Duff =end pod
You can’t perform that action at this time.