1Mail::Field::Date(3)  User Contributed Perl Documentation Mail::Field::Date(3)
2
3
4

NAME

6       Mail::Field::Date - a date header field
7

INHERITANCE

9        Mail::Field::Date
10          is a Mail::Field
11

SYNOPSIS

13         use HTTP::Date 'time2iso';
14         my $field = Mail::Field->new(Date => time2iso());
15

DESCRIPTION

17       Represents one "Date" header field.
18
19       Extends "DESCRIPTION" in Mail::Field.
20

METHODS

22       Extends "METHODS" in Mail::Field.
23
24   Constructors
25       Extends "Constructors" in Mail::Field.
26
27       Mail::Field::Date->combine($fields)
28           Inherited, see "Constructors" in Mail::Field
29
30       Mail::Field::Date->extract( $tag, $head [, $index ] )
31           Inherited, see "Constructors" in Mail::Field
32
33       Mail::Field::Date->new( $tag [, STRING | %options] )
34           Inherited, see "Constructors" in Mail::Field
35
36   "Fake" constructors
37       Extends ""Fake" constructors" in Mail::Field.
38
39       $obj->create(%options)
40           Inherited, see ""Fake" constructors" in Mail::Field
41
42       $obj->parse()
43           Inherited, see ""Fake" constructors" in Mail::Field
44
45   Accessors
46       Extends "Accessors" in Mail::Field.
47
48       $obj->set(%options)
49            -Option --Default
50             Time     undef
51             TimeStr  undef
52
53           Time => SECONDS
54           TimeStr => STRING
55             A string acceptable to Date::Parse.
56
57       $obj->stringify()
58           Inherited, see "Accessors" in Mail::Field
59
60       $obj->tag()
61       Mail::Field::Date->tag()
62           Inherited, see "Accessors" in Mail::Field
63
64   Smart accessors
65       Extends "Smart accessors" in Mail::Field.
66
67       $obj->text( [STRING] )
68           Inherited, see "Smart accessors" in Mail::Field
69
70       $obj->time( [$time] )
71           Query (or change) the $time (as stored in the field) in seconds.
72

DETAILS

74       Extends "DETAILS" in Mail::Field.
75

DIAGNOSTICS

77       Error: Undefined subroutine <method> called
78           Mail::Field objects use autoloading to compile new functionality.
79           Apparently, the method called is not implemented for the specific
80           class of the field object.
81

SEE ALSO

83       This module is part of the MailTools distribution,
84       http://perl.overmeer.net/mailtools/.
85

AUTHORS

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

LICENSE

96       Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2017 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.38.0                      2023-07-20              Mail::Field::Date(3)
Impressum