README
1NAME
2 DateTime::Functions - Procedural interface to DateTime functions
3
4VERSION
5 This document describes version 0.10 of DateTime::Functions, released
6 December 9, 2010
7
8SYNOPSIS
9 use DateTime::Functions;
10 print today->year;
11 print now->strftime("%Y-%m-%d %H:%M:%S");
12
13DESCRIPTION
14 This module simply exports all class methods of DateTime into the
15 caller's namespace.
16
17METHODS
18 Unless otherwise noted, all methods correspond to the same-named class
19 method in DateTime. Please see DateTime for which parameters are
20 supported.
21
22 Constructors
23 All constructors can die when invalid parameters are given. They all
24 return "DateTime" objects, except for "duration()" which returns a
25 "DateTime::Duration" object.
26
27 * datetime( ... )
28
29 Equivalent to "DateTime->new( ... )".
30
31 * duration( ... )
32
33 Equivalent to "DateTime::Duration->new( ... )".
34
35 * from_epoch( epoch => $epoch, ... )
36
37 * now( ... )
38
39 * today( ... )
40
41 * from_object( object => $object, ... )
42
43 * last_day_of_month( ... )
44
45 * from_day_of_year( ... )
46
47 Utility Functions
48 * default_locale( $locale )
49
50 Equivalent to "DateTime->DefaultLocale( $locale )".
51
52 * compare
53
54 * compare_ignore_floating
55
56SEE ALSO
57 DateTime
58
59AUTHORS
60 唐鳳 <cpan@audreyt.org>
61
62CC0 1.0 Universal
63 To the extent possible under law, 唐鳳 has waived all copyright and
64 related or neighboring rights to DateTime-Functions.
65
66 This work is published from Taiwan.
67
68 <http://creativecommons.org/publicdomain/zero/1.0>
69
70