Tag Info

New answers tagged

0

The link Rohit provides has the answer, and it's a good one (I used it myself, and I would upvote it if I had enough rep). However, in the spirit of this, and particularly in case Rohit's link goes away, I'm going to write out the answer in full. Note: this should still be considered Rohit's answer; I'm just transferring it here for posterity. One way to ...


0

Please try this command To force UTC, simply set $TZ to UTC: TZ="UTC" ls . This will set $TZ to UTC just for the duration of this command.


2

One can set the time zone environment variable for each invocation of ls like so: TZ=utc ls -l or set it once with: export TZ=utc in a shell to have it always on, for the remaining duration of the shell session.


2

From the manpage: The optional format parameter controls how the timestamp is formatted, as used by strftime(3). The default format is "%b %d %H:%M:%S". In addition to the regular strftime conversion specifications, "%.S" and "%.s" are like "%S" and "%s", but provide subsecond resolution (ie, "30.00001" and "1301682593.00001"). For example: ...



Top 50 recent answers are included