diff options
author | Jim Meyering <jim@meyering.net> | 2006-05-04 12:55:08 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-05-04 12:55:08 +0000 |
commit | d98da55f1d39e9df1be9846c77ab0935953a79f1 (patch) | |
tree | 6c06d9398598058db60c7eecd6465d84d2a4191a /doc | |
parent | 72049d2e2e81b0582cc562db0317fbcb59189182 (diff) | |
download | coreutils-d98da55f1d39e9df1be9846c77ab0935953a79f1.tar.xz |
(Examples of date): Give example of @seconds.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index fc1cad2d4..3320a0817 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -12514,6 +12514,14 @@ date -d '1970-01-01 UTC 946684800 seconds' +"%Y-%m-%d %T %z" 1999-12-31 19:00:00 -0500 @end smallexample +Or if you do not mind depending on the @samp{@@} feature present since +coreutils 5.3.0, you could shorten this to: + +@smallexample +date -d @@946684800 +"%F %T %z" +1999-12-31 19:00:00 -0500 +@end smallexample + Often it is better to output UTC-relative date and time: @smallexample |