diff options
author | jmg <jmg@FreeBSD.org> | 1999-05-14 00:28:41 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 1999-05-14 00:28:41 +0000 |
commit | 80ee25f43717db8a33c0838660bbcb5895d4c3f4 (patch) | |
tree | e90f2133a20b16a55faacf6975b9cfa7db0d46e6 /bin/date/date.1 | |
parent | e33fdd052056c7d8859223f35e1f41a531c0952d (diff) | |
download | FreeBSD-src-80ee25f43717db8a33c0838660bbcb5895d4c3f4.zip FreeBSD-src-80ee25f43717db8a33c0838660bbcb5895d4c3f4.tar.gz |
the month and three days are up for -hackers and the 24hrs for -committers.
add a -j flag that tells date not to try to set the date. This allows you
to use date as a userland interface to strptime.
example:
TZ=GMT date -j -f "%a, %d %b %Y %T %Z" "Sun, 08 Nov 1998 02:22:20 GMT" +%s
which is the standard format for Last-modified headers in HTTP requests.
only one to respond: eivind
Diffstat (limited to 'bin/date/date.1')
-rw-r--r-- | bin/date/date.1 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1 index 271a684..8837787 100644 --- a/bin/date/date.1 +++ b/bin/date/date.1 @@ -33,7 +33,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)date.1 8.3 (Berkeley) 4/28/95 -.\" $Id: date.1,v 1.27 1999/03/09 09:38:53 brian Exp $ +.\" $Id: date.1,v 1.28 1999/05/08 10:19:59 kris Exp $ .\" .Dd November 17, 1993 .Dt DATE 1 @@ -43,7 +43,7 @@ .Nd display or set date and time .Sh SYNOPSIS .Nm date -.Op Fl nu +.Op Fl jnu .Op Fl d Ar dst .Op Fl r Ar seconds .Op Fl t Ar minutes_west @@ -77,6 +77,12 @@ the default .Ar [[[[yy]mm]dd]HH]MM[.ss] format. Parsing is done using .Xr strptime 3 . +.It Fl j +Do not try to set the date. This allows you to use the +.Fl f +flag in addition to the +.Cm + +option to convert one date format to another. .It Fl n The utility .Xr timed 8 |