Mail::Field::Date(3)
okay bestie, this is the manual page for Mail::Field::Date β yes, that's the manual name up top, and no, we are not doing the boring header-line copy-paste. π
πΈ NAME πΈ
Mail::Field::Date β a date header field β¨
π¦ INHERITANCE π¦
Here's the family tree, no cap:
Mail::Field::Date
is a Mail::Field
β¨ SYNOPSIS β¨
Bestie, here's the whole vibe in two lines:
use HTTP::Date 'time2iso';
my $field = Mail::Field->new(Date => time2iso());
π DESCRIPTION π
Represents one "Date" header field. That's literally the whole personality. π
It extends "DESCRIPTION" in Mail::Field β so go read that section too, iykyk.
π§ METHODS π§
Extends "METHODS" in Mail::Field.
π Constructors π
Extends "Constructors" in Mail::Field.
Mail::Field::Date->combine($fields)β inherited, see"Constructors" in Mail::Field.Mail::Field::Date->extract( $tag, $head [, $index ] )β inherited, see"Constructors" in Mail::Field.Mail::Field::Date->new( $tag [, STRING | %options] )β inherited, see"Constructors" in Mail::Field.
π "Fake" constructors π
Extends "Fake" constructors" in Mail::Field.
$obj->create(%options)β inherited, see"Fake" constructors" in Mail::Field.$obj->parse()β inherited, see"Fake" constructors" in Mail::Field.
π₯ Accessors π₯
Extends "Accessors" in Mail::Field.
$obj->set(%options)β sets the field options. The defaults are:
-Option --Default
Time undef
TimeStr undef
The individual options are:
TimeβTime => SECONDS; defaultundef.TimeStrβTimeStr => STRING; a string acceptable toDate::Parse; defaultundef.
$obj->stringify()β inherited, see"Accessors" in Mail::Field.$obj->tag()andMail::Field::Date->tag()β both inherited, see"Accessors" in Mail::Field.
π Smart accessors π
Extends "Smart accessors" in Mail::Field.
$obj->text( [STRING] )β inherited, see"Smart accessors" in Mail::Field.$obj->time( [$time] )β query (or change) the$time(as stored in the field) in seconds.
π DETAILS π
Extends "DETAILS" in Mail::Field.
π©Ί DIAGNOSTICS π©Ί
Here's the dramatic error moment:
Error: Undefined subroutine <method> called
Mail::Field objects use autoloading to compile new functionality. Apparently, the method called is not implemented for the specific class of the field object.
π«Ά SEE ALSO π«Ά
This module is part of the MailTools distribution, http://perl.overmeer.net/mailtools/.
π AUTHORS π
The MailTools bundle was developed by Graham Barr. Later, Mark Overmeer took over maintenance without commitment to further development.
Mail::Cap by Gisle Aas <aas@oslonett.no>. Mail::Field::AddrList by Peter Orbaek <poe@cit.dk>. Mail::Mailer and Mail::Send by Tim Bunce <Tim.Bunce@ig.co.uk>. For other contributors see ChangeLog.
π LICENSE π
Copyrights 1995-2000 Graham Barr <gbarr@pobox.com> and 2001-2024 Mark Overmeer <perl@overmeer.net>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html.
xoxo bestie, that's the whole page π β from perl v5.42.0, dated 2024-12-12, and you just read Mail::Field::Date(3) π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-MailTools 2.220.0-160000.2.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms