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 DateTime into the caller's namespace.
Unless otherwise noted, all methods correspond to the same-named class method in DateTime. Please see DateTime 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.
DateTime
duration()
DateTime::Duration
datetime( ... )
Equivalent to DateTime->new( ... ).
DateTime->new( ... )
duration( ... )
Equivalent to DateTime::Duration->new( ... ).
DateTime::Duration->new( ... )
from_epoch( epoch => $epoch, ... )
now( ... )
today( ... )
from_object( object => $object, ... )
last_day_of_month( ... )
from_day_of_year( ... )
default_locale( $locale )
Equivalent to DateTime->DefaultLocale( $locale ).
DateTime->DefaultLocale( $locale )
compare
compare_ignore_floating
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.
See http://www.perl.com/perl/misc/Artistic.html
To install DateTime::Functions, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Functions
CPAN shell
perl -MCPAN -e shell install DateTime::Functions
For more information on module installation, please visit the detailed CPAN module installation guide.