summaryrefslogtreecommitdiffstats
path: root/bin/date
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-02-18 23:12:55 +0000
committerobrien <obrien@FreeBSD.org>2003-02-18 23:12:55 +0000
commitdef2990bafc98cc4323876b994cfab5524e2d081 (patch)
tree49fb810d1a85ccd4c1b821cc8d11c73b1fb4ff4e /bin/date
parenta474b7abac3514ab0b6066c6d79b69669cc8cd46 (diff)
downloadFreeBSD-src-def2990bafc98cc4323876b994cfab5524e2d081.zip
FreeBSD-src-def2990bafc98cc4323876b994cfab5524e2d081.tar.gz
Add an example to help one manually set the date on one machine taking the out
put from another.
Diffstat (limited to 'bin/date')
-rw-r--r--bin/date/date.15
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/date/date.1 b/bin/date/date.1
index 7323a73..ed36fdd 100644
--- a/bin/date/date.1
+++ b/bin/date/date.1
@@ -319,6 +319,11 @@ date 8506131627
.Pp
sets the date to
.Dq Li "June 13, 1985, 4:27 PM" .
+.Bd -literal -offset indent
+date "+%Y%m%d%H%M.%S"
+.Ed
+.Pp
+may be used on one machine to print out the date suitable for setting on another.
.Pp
The command:
.Bd -literal -offset indent
OpenPOWER on IntegriCloud