Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


manipulating_date_strings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
manipulating_date_strings [2012/10/03 10:46] juckinsmanipulating_date_strings [2022/05/07 12:33] (current) juckins
Line 80: Line 80:
 $ date --date="yesterday 08:00 edt" '+%y%m%d/%H%M' $ date --date="yesterday 08:00 edt" '+%y%m%d/%H%M'
 121002/1200 121002/1200
 +
 +$ date -d @1446390000
 +Sun Nov  1 15:00:00 UTC 2015
 </code> </code>
 +
 +Converting from seconds and a different timezone:
 +  TZ=":US/Eastern" date -d @1651335000
 +  TZ=":America/Phoenix" date -d @1651335000
 +  TZ=":America/Phoenix" date --date='2022-05-04T14:00:00.000Z'
manipulating_date_strings.1349275569.txt.gz · Last modified: 2012/10/03 10:46 by juckins