From d98da55f1d39e9df1be9846c77ab0935953a79f1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 4 May 2006 12:55:08 +0000 Subject: (Examples of date): Give example of @seconds. --- doc/coreutils.texi | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3-70-g09d2