.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) .\" .\" 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 .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . 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 2024-09-01 "perl v5.40.0" "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 STRING, \-\-date=STRING" 4 .IX Item "-d STRING, --date=STRING" Display time described by STRING. STRING can be any string which can be parsed by Date::Manip. Please refer to the Date::Manip::Date documentation for details. .IP "\-f DATEFILE, \-\-file=DATEFILE" 4 .IX Item "-f DATEFILE, --file=DATEFILE" This reads each line in DATEFILE, 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 FILE, \-\-reference=FILE" 4 .IX Item "-r FILE, --reference=FILE" Displays the last modification time of FILE. .IP "\-R, \-\-rfc\-2822" 4 .IX Item "-R, --rfc-2822" Displayc the date and time in RFC 2822 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 UT (GMT) 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)