Re: [Tutor] python3 equivalent of coreutils stat command

2014-06-14 Thread Alan Gauld
On 14/06/14 22:06, street.swee...@mailworks.org wrote: With the stat command in GNU coreutils, I can get a file's modification time, with timezone offset. gotten close with os.path.getmtime and os.stat, for example 2014-02-03T14:48:17. But, no timezone offset. os.stat returns the mtime as s

[Tutor] python3 equivalent of coreutils stat command

2014-06-14 Thread street . sweeper
With the stat command in GNU coreutils, I can get a file's modification time, with timezone offset. For example, the output of "stat -c %y *" looks like 2014-02-03 14:48:17.0 -0200 2014-05-29 19:00:05.0 -0100 What I want to do is get the mtime in ISO8601 format, and I've