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

METHODS

20   Constructors
21       Mail::Field::Date->combine(FIELDS)
22           See "Constructors" in Mail::Field
23
24       Mail::Field::Date->extract(TAG, HEAD [, INDEX ])
25           See "Constructors" in Mail::Field
26
27       Mail::Field::Date->new(TAG [, STRING | OPTIONS])
28           See "Constructors" in Mail::Field
29
30   "Fake" constructors
31       $obj->create(OPTIONS)
32           See ""Fake" constructors" in Mail::Field
33
34       $obj->parse()
35           See ""Fake" constructors" in Mail::Field
36
37   Accessors
38       $obj->set(OPTIONS)
39            -Option --Default
40             Time     undef
41             TimeStr  undef
42
43           Time => SECONDS
44           TimeStr => STRING
45             A string acceptable to Date::Parse.
46
47       $obj->stringify()
48           See "Accessors" in Mail::Field
49
50       $obj->tag()
51       Mail::Field::Date->tag()
52           See "Accessors" in Mail::Field
53
54   Smart accessors
55       $obj->text([STRING])
56           See "Smart accessors" in Mail::Field
57
58       $obj->time([TIME])
59           Query (or change) the TIME (as stored in the field) in seconds.
60

DIAGNOSTICS

62       Error: Undefined subroutine <method> called
63           Mail::Field objects use autoloading to compile new functionality.
64           Apparently, the mehod called is not implemented for the specific
65           class of the field object.
66

SEE ALSO

68       This module is part of the MailTools distribution,
69       http://perl.overmeer.net/mailtools/.
70

AUTHORS

72       The MailTools bundle was developed by Graham Barr.  Later, Mark
73       Overmeer took over maintenance without commitment to further
74       development.
75
76       Mail::Cap by Gisle Aas <aas@oslonett.no>.  Mail::Field::AddrList by
77       Peter Orbaek <poe@cit.dk>.  Mail::Mailer and Mail::Send by Tim Bunce
78       <Tim.Bunce@ig.co.uk>.  For other contributors see ChangeLog.
79

LICENSE

81       Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2007 Mark
82       Overmeer <perl@overmeer.net>.
83
84       This program is free software; you can redistribute it and/or modify it
85       under the same terms as Perl itself.  See
86       http://www.perl.com/perl/misc/Artistic.html
87
88
89
90perl v5.16.3                      2012-12-21              Mail::Field::Date(3)
Impressum