++ed by:
ADAMJS DAGOLDEN THALJEF

3 PAUSE user(s)
1 non-PAUSE user(s).

David Golden

NAME

Meerkat::DateTime - DateTime proxy for lazy inflation from an epoch value

VERSION

version 0.010

SYNOPSIS

  use Time::HiRes;
  use Meerkat::DateTime;

  my $mkdt = Meerkat::DateTime->new( epoch = time );
  my $datetime = $mkdt->DateTime;

DESCRIPTION

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.

ATTRIBUTES

epoch (required)

Floating point epoch seconds

DateTime

A lazily-inflated DateTime object. It will not be serialized by MooseX::Storage.

AUTHOR

David Golden <dagolden@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2013 by David Golden.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004



Hosting generously
sponsored by Bytemark