1HTTP::Headers::ActionPaUcske:r:DCaotnetHreiabduetre(d3H)PTeTrPl::DHoecaudmeernst:a:tAicotnionPack::DateHeader(3)
2
3
4

NAME

6       HTTP::Headers::ActionPack::DateHeader - A Date Header
7

VERSION

9       version 0.09
10

SYNOPSIS

12         use HTTP::Headers::ActionPack::DateHeader;
13
14         # create from string
15         my $date = HTTP::Headers::ActionPack::DateHeader->new_from_string(
16             'Mon, 23 Apr 2012 14:14:19 GMT'
17         );
18
19         # create using Time::Peice object
20         my $date = HTTP::Headers::ActionPack::DateHeader->new(
21             $timepeice_object
22         );
23

DESCRIPTION

25       This is an object which represents an HTTP header with a date.  It will
26       inflate the header value into a Time::Piece object and proxy most of
27       the relevant methods.
28

DateTime compatibility

30       I opted to not use DateTime (by default) for this class since it is not
31       a core module and can be a memory hog at times. That said, it should be
32       noted that DateTime objects are compatible with this class. You will
33       need to pass in a DateTime instance to "new" and after that everything
34       should behave properly. If you want "new_from_string" to inflate
35       strings to DateTime objects you will need to override that method
36       yourself.
37

METHODS

39       "date"
40           Returns the underlying Time::Piece object.
41
42       "new_from_string ( $date_header_string )"
43           This will take an HTTP header Date string and parse it into and
44           object.
45
46       "as_string"
47       "second"
48       "minute"
49       "hour"
50       "day_of_month"
51       "month_number"
52       "fullmonth"
53       "month"
54       "year"
55       "day_of_week"
56       "day"
57       "fullday"
58       "epoch"
59           These delegate to the underlying Time::Piece object.
60

AUTHOR

62       Stevan Little <stevan.little@iinteractive.com>
63

CONTRIBUTORS

65       •   Andrew Nelson <anelson@cpan.org>
66
67       •   Dave Rolsky <autarch@urth.org>
68
69       •   Florian Ragwitz <rafl@debian.org>
70
71       •   Jesse Luehrs <doy@tozt.net>
72
73       •   Karen Etheridge <ether@cpan.org>
74
76       This software is copyright (c) 2012 by Infinity Interactive, Inc..
77
78       This is free software; you can redistribute it and/or modify it under
79       the same terms as the Perl 5 programming language system itself.
80
81
82
83perl v5.34.0                      2022-H0T1T-P2:1:Headers::ActionPack::DateHeader(3)
Impressum