autobox::Numeric::Time - ActiveSupport equivalent to Perl numeric variables
use autobox; use autobox::Numeric::Time; print 2->seconds; # 2 print 3->minutes; # 180 print 3->hours; # 10800 print 2->days; # 172800
autobox::Numeric::Time is an autobox module to add Time-related methods to core integer values by using constant overloading. Inspired by ActiveSupport (Rails) Core extensions to Numeric values and autobox::DateTime::Duration.
This module does not support following methods:
ago until since from_now
if you need, try to use autobox::DateTime::Duration.
http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Numeric/Time.html
autobox, autobox::DateTime::Duration
HIROSE Masaaki, <hirose31@gmail.com>
<hirose31@gmail.com>
Please report any bugs or feature requests to bug-autobox-numeric-time@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-autobox-numeric-time@rt.cpan.org
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install autobox::Numeric::Time, copy and paste the appropriate command in to your terminal.
cpanm
cpanm autobox::Numeric::Time
CPAN shell
perl -MCPAN -e shell install autobox::Numeric::Time
For more information on module installation, please visit the detailed CPAN module installation guide.