DateTime::Ordinal - The great new DateTime::Ordinal!
Version 0.03
Quick summary of what the module does.
use DateTime::Ordinal; my $dt = DateTime::Ordinal->new( year => 3000, month => 4, day => 1, hour => 2, minute => 3, second => 4, ); $dt->day # 1 $dt->day('o') # 1st $dt->day('f') # one $dt->day('of') # first $dt->hour # 2 $dt->hour('o') # 2nd $dt->hour('f') # two $dt->hour('of') # second $dt->minute # 3 $dt->minute('o') # 3rd $dt->minute('f') # three $dt->minute('of') # third $dt->second # 4 $dt->second('o') # 4th $dt->second('f') # four $dt->second('of') # fourth $dt->strftime("It's the %M(of) minute of the %H(o) hour on day %d(f) in the %m(of) month within the year %Y(f)"); # "It's the third minute of the 2nd hour on day one in the fourth month within the year three thousand"); ... use Lingua::ITA::Numbers use DateTime::Ordinal ( sub_format => { f => sub { my $number = Lingua::ITA::Numbers->new(shift); return $number->get_string; } } ); my $dt = DateTime::Ordinal->new( hour => 1, minute => 2, second => 3, locale => 'it' ); $dt->hour('f') # uno $dt->minute('f') # due $dt->second('f') # tre
LNATION, <thisusedtobeanemail at gmail.com>
<thisusedtobeanemail at gmail.com>
Please report any bugs or feature requests to bug-datetime-ordinal at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=DateTime-Ordinal. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-datetime-ordinal at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc DateTime::Ordinal
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
https://rt.cpan.org/NoAuth/Bugs.html?Dist=DateTime-Ordinal
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/DateTime-Ordinal
CPAN Ratings
https://cpanratings.perl.org/d/DateTime-Ordinal
Search CPAN
https://metacpan.org/release/DateTime-Ordinal
This software is Copyright (c) 2019 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install DateTime::Ordinal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Ordinal
CPAN shell
perl -MCPAN -e shell install DateTime::Ordinal
For more information on module installation, please visit the detailed CPAN module installation guide.