DateTime::Functions - Procedural interface to DateTime functions
This document describes version 0.01 of DateTime::Functions, released October 31, 2003.
use DateTime::Functions;
print today->year;
print now->strftime("%Y-%m-%d %H:%M:%S");
This module simply exports all class methods of the DateTime manpage into the caller's namespace.
Unless otherwise noted, all methods correspond to the same-named class method in the DateTime manpage. Please see the DateTime manpage for which parameters are supported.
All constructors can die when invalid parameters are given. They all
return DateTime objects, except for duration() which returns
a DateTime::Duration object.
Equivalent to DateTime->new( ... ).
Equivalent to DateTime::Duration->new( ... ).
Equivalent to DateTime->DefaultLocale( $locale ).
Autrijus Tang <autrijus@autrijus.org>
Copyright 2003 by Autrijus Tang <autrijus@autrijus.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.