1Mail::Field::Date(3) User Contributed Perl Documentation Mail::Field::Date(3)
2
3
4
6 Mail::Field::Date - a date header field
7
9 Mail::Field::Date
10 is a Mail::Field
11
13 use HTTP::Date 'time2iso';
14 my $field = Mail::Field->new(Date => time2iso());
15
17 Represents one "Date" header field.
18
20 Constructors
21 Mail::Field::Date->combine(FIELDS)
22
23 See "Constructors" in Mail::Field
24
25 Mail::Field::Date->extract(TAG, HEAD [, INDEX ])
26
27 See "Constructors" in Mail::Field
28
29 Mail::Field::Date->new(TAG [, STRING | OPTIONS])
30
31 See "Constructors" in Mail::Field
32
33 "Fake" constructors
34 $obj->create(OPTIONS)
35
36 See ""Fake" constructors" in Mail::Field
37
38 $obj->parse
39
40 See ""Fake" constructors" in Mail::Field
41
42 Accessors
43 $obj->set(OPTIONS)
44
45 Option --Default
46 Time undef
47 TimeStr undef
48
49 . Time => SECONDS
50
51 . TimeStr => STRING
52
53 A string acceptable to Date::Parse.
54
55 $obj->stringify
56
57 See "Accessors" in Mail::Field
58
59 $obj->tag
60
61 Mail::Field::Date->tag
62
63 See "Accessors" in Mail::Field
64
65 Smart accessors
66 $obj->text([STRING])
67
68 See "Smart accessors" in Mail::Field
69
70 $obj->time([TIME])
71
72 Query (or change) the TIME (as stored in the field) in seconds.
73
76 Error: Undefined subroutine <method> called
77
78 Mail::Field objects use autoloading to compile new functionality.
79 Apparently, the mehod called is not implemented for the specific
80 class of the field object.
81
83 This module is part of the MailTools distribution,
84 http://perl.overmeer.net/mailtools/.
85
87 The MailTools bundle was developed by Graham Barr. Later, Mark
88 Overmeer took over maintenance without commitment to further
89 development.
90
91 Mail::Cap by Gisle Aas <aas@oslonett.no>. Mail::Field::AddrList by
92 Peter Orbaek <poe@cit.dk>. Mail::Mailer and Mail::Send by Tim Bunce
93 <Tim.Bunce@ig.co.uk>. For other contributors see ChangeLog.
94
96 Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2007 Mark
97 Overmeer <perl@overmeer.net>.
98
99 This program is free software; you can redistribute it and/or modify it
100 under the same terms as Perl itself. See
101 http://www.perl.com/perl/misc/Artistic.html
102
103
104
105perl v5.12.2 2010-10-01 Mail::Field::Date(3)