Closed ms-studio closed 8 years ago
A new "human readable" date format was introduced in
The former version was:
TIMESTAMP=$(date +"%s")
The new version:
TIMESTAMP=$(date --utc +%Y%m%d_%H%M%SZ)
This produces the following error on OSX:
date: illegal option -- - usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
The notation -u appears to work fine though, and according to http://ss64.com/bash/date.html has the same result.
-u
A new "human readable" date format was introduced in
The former version was:
The new version:
This produces the following error on OSX:
The notation
-u
appears to work fine though, and according to http://ss64.com/bash/date.html has the same result.