Looking for help!The maintainer of this distribution is looking for people to help them improve this module! If you're interested then please contact them via email.
- SEE ALSO
- COPYRIGHT AND LICENSE
DateTime::Functions - Procedural interface to DateTime functions
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.
All constructors can die when invalid parameters are given. They all return
DateTime objects, except for
duration() which returns a
datetime( ... )
DateTime->new( ... ).
duration( ... )
DateTime::Duration->new( ... ).
from_epoch( epoch => $epoch, ... )
now( ... )
today( ... )
from_object( object => $object, ... )
last_day_of_month( ... )
from_day_of_year( ... )
default_locale( $locale )
DateTime->DefaultLocale( $locale ).
唐鳳 has dedicated the work to the Commons by waiving all of his or her rights to the work worldwide under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law.
Works under CC0 do not require attribution. When citing the work, you should not imply endorsement by the author.
This work is published from Taiwan.