Acme::Current - Determine current year, month, day (GMT)
use Acme::Current; printf "It's now %04d/%02d/%02d.\n", $Acme::Current::YEAR, $Acme::Current::MONTH, $Acme::Current::DAY; if ($Acme::Current::MONTH == 12 and $Acme::Current::DAY == 25) { print "Merry Christmas!\n"; }
Acme::Current gives you all the power of those myriad of date/time modules without all that complexity, as long as all you want is the current date (GMT-based), and you keep the module up to date.
Acme::Current
Nothing. You need to use $Acme::Current::YEAR to get the year, and so on.
$Acme::Current::YEAR
None known.
Date::Manip, and a hundred other date and time modules.
Date::Manip
See http://training.perl.org for all your Perl training needs.
Jesse Vincent <jesse@cpan.org> based on an inane acme module by
Randal L. Schwartz, <merlyn@stonehenge.com>, http://www.stonehenge.com/merlyn/.
Based on an idea from a conversation with Joshua Hoblitt.
Portions Copyright 2003 by Jesse Vincent
Portions Copyright 2003 by Randal L. Schwartz, Stonehenge Consulting Services, Inc.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Acme::Current::Forever, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::Current::Forever
CPAN shell
perl -MCPAN -e shell install Acme::Current::Forever
For more information on module installation, please visit the detailed CPAN module installation guide.