David F. Houghton > App-JobLog-1.030 > App::JobLog::Time

Download:
App-JobLog-1.030.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 1.030   Source   Latest Release: App-JobLog-1.031

NAME ^

App::JobLog::Time - consolidates basic time functions into one location

VERSION ^

version 1.030

DESCRIPTION ^

App::JobLog::Time puts the cachable time functions into a common module to improve efficiency and facilitate testing.

METHODS ^

now

The present moment with the time zone set to $App::JobLog::Time::tz. This may be overridden with $App::JobLog::Time::now.

today

Unless $App::JobLog::Time::today has been set, whatever is given by now truncated to the day.

tz

Returns time zone, which will be the local time zone unless $App::JobLog::Time::tz has been set.

AUTHOR ^

David F. Houghton <dfhoughton@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by David F. Houghton.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: