]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(Examples of date): Give example of @seconds.
authorJim Meyering <jim@meyering.net>
Thu, 4 May 2006 12:55:08 +0000 (12:55 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 4 May 2006 12:55:08 +0000 (12:55 +0000)
doc/coreutils.texi

index fc1cad2d402d74280af8cde577004cf97cae66f6..3320a08172e532eabd18a393a7bf6c70bb7ab669 100644 (file)
@@ -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