=head1 NAME Warabe::App::Role::DateTime - Warabe Web Application API - DateTime module =head1 SYNOPSIS package My::Warabe::App; use base qw(Warabe::App::Role::DateTime Warabe::App); $app = My::Warabe::App->new_from_http ($http); $dt = $app->epoch_param_as_datetime ('hoge'); =head1 DESCRIPTION The C module defines additional methods for handling date-time data as L objects in L API. This module is intended to be used a superclass of some subclass of L. =head1 METHOD =over 4 =item $datetime = $app->epoch_param_as_datetime ($name) Decode request parameter (i.e. C or C encoded form data set in query parameters and request-body) with the specified name as epoch (so-called Unix time or C) and return as a L object. If the parameter values is not an integer (or is too large), the C value is returned. =back =head1 SEE ALSO L. L. =head1 AUTHOR Wakaba . =head1 LICENSE Copyright 2012 Wakaba . This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut