Skip to content

Instantly share code, notes, and snippets.

@nelhage
Created October 7, 2014 01:29
Show Gist options
  • Save nelhage/96bb648abaa28f0d8b8b to your computer and use it in GitHub Desktop.
Save nelhage/96bb648abaa28f0d8b8b to your computer and use it in GitHub Desktop.
[nelhage@anarchique:~]$ t=$(TZ=UTC date +"%y%m%d%H%M"); echo $t
1410070128
[nelhage@anarchique:~]$ t=$(TZ=UTC date --date=@$t +"%y%m%d%H%M"); echo $t
1409070608
[nelhage@anarchique:~]$ t=$(TZ=UTC date --date=@$t +"%y%m%d%H%M"); echo $t
1408261630
[nelhage@anarchique:~]$ t=$(TZ=UTC date --date=@$t +"%y%m%d%H%M"); echo $t
1408170747
[nelhage@anarchique:~]$ t=$(TZ=UTC date --date=@$t +"%y%m%d%H%M"); echo $t
1408160632
[nelhage@anarchique:~]$ t=$(TZ=UTC date --date=@$t +"%y%m%d%H%M"); echo $t
1408160343
[nelhage@anarchique:~]$ t=$(TZ=UTC date --date=@$t +"%y%m%d%H%M"); echo $t
1408160339
[nelhage@anarchique:~]$ t=$(TZ=UTC date --date=@$t +"%y%m%d%H%M"); echo $t
1408160338
[nelhage@anarchique:~]$ t=$(TZ=UTC date --date=@$t +"%y%m%d%H%M"); echo $t
1408160338
[nelhage@anarchique:~]$ t=$(TZ=UTC date --date=@$t +"%y%m%d%H%M"); echo $t
1408160338
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment