File: DateTime.pm

package info (click to toggle)
librose-datetime-perl 0.537-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 120 kB
  • sloc: perl: 810; makefile: 2
file content (52 lines) | stat: -rwxr-xr-x 1,251 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package Rose::DateTime;

use strict; # ha

our $VERSION = '0.537';

1;

__END__

=head1 NAME

Rose::DateTime - DateTime helper functions and objects.

=head1 SYNOPSIS

    use Rose::DateTime::Util qw(:all);

    $now  = parse_date('now');
    $then = parse_date('12/25/2001 6pm');

    $date_text = format_date($then, "%D at %T %p");

    ...

    use Rose::DateTime::Parser;

    $parser = Rose::DateTime::Parser->new(time_zone => 'UTC');

    $date = $parser->parse_date('12/25/1999');

=head1 DESCRIPTION

The C<Rose::DateTime::*> modules provide a few convenience functions and objects for use with C<DateTime> dates.

L<Rose::DateTime::Util> contains a simple date parser and a slightly customized date formatter.

L<Rose::DateTime::Parser> encapsulates a date parser with an associated default time zone.

This module (C<Rose::DateTime>) exists mostly to provide a version number for CPAN.  See the individual modules for some actual documentation.

=head1 SEE ALSO

L<DateTime>, L<DateTime::TimeZone>

=head1 AUTHOR

John C. Siracusa (siracusa@gmail.com)

=head1 LICENSE

Copyright (c) 2010 by John C. Siracusa.  All rights reserved.  This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.