Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
DateTime::Functions(3)User Contributed Perl DocumentatioDateTime::Functions(3)

NAME
       DateTime::Functions - Procedural	interface to DateTime functions

SYNOPSIS
	   use DateTime::Functions;
	   print today->year;
	   print now->strftime("%Y-%m-%d %H:%M:%S");

DESCRIPTION
       This module simply exports all class methods of DateTime	into the
       caller's	namespace.

METHODS
       Unless otherwise	noted, all methods correspond to the same-named	class
       method in DateTime.  Please see DateTime	for which parameters are
       supported.

   Constructors
       All constructors	can die	when invalid parameters	are given.  They all
       return "DateTime" objects, except for "duration()" which	returns	a
       "DateTime::Duration" object.

       o   datetime( ... )

	   Equivalent to "DateTime->new( ... )".

       o   duration( ... )

	   Equivalent to "DateTime::Duration->new( ... )".

       o   from_epoch( epoch =>	$epoch,	... )

       o   now(	... )

       o   today( ... )

       o   from_object(	object => $object, ... )

       o   last_day_of_month( ... )

       o   from_day_of_year( ... )

   Utility Functions
       o   default_locale( $locale )

	   Equivalent to "DateTime->DefaultLocale( $locale )".

       o   compare

       o   compare_ignore_floating

SEE ALSO
       DateTime

AUTHOR
       ae^3^3 <cpan@audreyt.org>

COPYRIGHT AND LICENSE
       ae^3^3 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.

       <http://creativecommons.org/publicdomain/zero/1.0>

perl v5.32.1			  2016-07-03		DateTime::Functions(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=DateTime::Functions&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help