Net::Lyskom::Time - object that holds a time value.
print scalar localtime($obj->time_t);
All methods except time_t() and new() are get/set attribute accessors. That is, they return the attribute's contents if called without an argument and set the attribute's contents if given an argument. time_t() returns the held time in seconds since the Unix epoch, and new() creates a new object.
All arguments are optional. If not given, they default to the value appropriate to the current time.
To install Net::Lyskom, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Lyskom
CPAN shell
perl -MCPAN -e shell install Net::Lyskom
For more information on module installation, please visit the detailed CPAN module installation guide.