Quantcast
Channel: cocoa*life
Viewing all articles
Browse latest Browse all 11

Get current time in UTC, suitable for file name

$
0
0

Using the following ‘date’ command, we can get current time in UTC whose format is suitable for such as file name.

$ date -u "+%Y%m%d%H%M%S"
$ 20110412065955

Viewing all articles
Browse latest Browse all 11

Trending Articles