bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date +%s ignores TZ


From: Jan Engelhardt
Subject: date +%s ignores TZ
Date: Fri, 29 Feb 2008 19:54:04 +0100 (CET)

Hi,


this is probably all correct behavior as it is right now (coreutils 6.9):

        $ date +%s
        1204311113
        $ TZ=GMT date +%s
        1204311113
        $ TZ=PDT date +%s
        1204311113

but is there actually a way to do

        $ TZ=anything date +%s -d "`date '+%Y-%m-%d %H:%M:%S'`";

without invoking date twice?


thanks,
Jan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]