GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DATETIME::FUNCTIONS (3)

.ds Aq ’

NAME

DateTime::Functions - Procedural interface to DateTime functions

CONTENTS

VERSION

This document describes version 0.10 of DateTime::Functions, released December 9, 2010

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

XX <cpan@audreyt.org>

COPYRIGHT AND LICENSE

XX 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>

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DATETIME::FUNCTIONS (3) 2016-03-08

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.