.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings. \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
. ds -- \(*W-
. ds PI pi
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
. ds L" ""
. ds R" ""
. ds C` ""
. ds C' ""
'br\}
.el\{\
. ds -- \|\(em\|
. ds PI \(*p
. ds L" ``
. ds R" ''
. ds C`
. ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD. Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
. if \nF \{\
. de IX
. tm Index:\\$1\t\\n%\t"\\$2"
..
. if !\nF==2 \{\
. nr % 0
. nr F 2
. \}
. \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "DM_DATE 1"
.TH DM_DATE 1 "2021-03-01" "perl v5.26.3" "User Contributed Perl Documentation"
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
dm_date \- print out the system date and time
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
This performs the same operation as the unix 'date' command, but using
the Date::Manip module.
.PP
.Vb 1
\& dm_date [OPTION]... [+FORMAT]
.Ve
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
This displays information about the current system time, or some
other time. Options are:
.IP "\-h, \-\-help" 4
.IX Item "-h, --help"
Print online help.
.IP "\-d \s-1STRING,\s0 \-\-date=STRING" 4
.IX Item "-d STRING, --date=STRING"
Display time described by \s-1STRING. STRING\s0 can be any string which can
be parsed by Date::Manip. Please refer to the Date::Manip::Date
documentation for details.
.IP "\-f \s-1DATEFILE,\s0 \-\-file=DATEFILE" 4
.IX Item "-f DATEFILE, --file=DATEFILE"
This reads each line in \s-1DATEFILE,\s0 and extracts a date from it and
prints out the information.
.Sp
Blank lines and lines starting with a pound (#) are ignored. Lines
not containing a valid date are also ignored.
.IP "\-r \s-1FILE,\s0 \-\-reference=FILE" 4
.IX Item "-r FILE, --reference=FILE"
Displays the last modification time of \s-1FILE.\s0
.IP "\-R, \-\-rfc\-2822" 4
.IX Item "-R, --rfc-2822"
Displayc the date and time in \s-1RFC 2822\s0 format.
.Sp
Example: Mon, 07 Aug 2006 12:34:56 \-0600
.IP "\-u, \-\-utc, \-\-universal" 4
.IX Item "-u, --utc, --universal"
Converts the date to \s-1UT\s0 (\s-1GMT\s0) and prints out the information.
.PP
Only one of \-d, \-f, or \-r should be included. If more than
one is included, the first one from the list (\-d, \-f, \-r)
is used and any other is ignored.
.PP
The format string starts with a plus (+) and contains any
of the format directives described in Date::Manip::Date.
.SH "KNOWN BUGS"
.IX Header "KNOWN BUGS"
None known.
.SH "BUGS AND QUESTIONS"
.IX Header "BUGS AND QUESTIONS"
Please refer to the Date::Manip::Problems documentation for
information on submitting bug reports or questions to the author.
.SH "SEE ALSO"
.IX Header "SEE ALSO"
Date::Manip::Date
.SH "LICENSE"
.IX Header "LICENSE"
This script is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
.SH "AUTHOR"
.IX Header "AUTHOR"
Sullivan Beck (sbeck@cpan.org)