Meerkat::DateTime - DateTime proxy for lazy inflation from an epoch value
version 0.010
use Time::HiRes; use Meerkat::DateTime; my $mkdt = Meerkat::DateTime->new( epoch = time ); my $datetime = $mkdt->DateTime;
This module provides a way to lazily inflate floating point epoch seconds into a "DateTime object". It's conceptually similar to DateTime::Tiny, but without all the year, month, day, etc. fields.
The Meerkat::Types module provides Moose type support and coercions and MooseX::Storage type handling to simplify having Meerkat::DateTime attributes.
See the Meerkat::Cookbook for more on handling dates and times.
Floating point epoch seconds
A lazily-inflated DateTime object. It will not be serialized by MooseX::Storage.
David Golden <dagolden@cpan.org>
This software is Copyright (c) 2013 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
To install Meerkat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Meerkat
CPAN shell
perl -MCPAN -e shell install Meerkat
For more information on module installation, please visit the detailed CPAN module installation guide.