Re: Re: Decode unixtime

2010-01-19 Thread Clive Standbridge
> Using Lenny? -- the '-I' will be gone soon. It is not even in Squeeze's > man page now. Yes lenny, it's disappeared from the man page already, and in fact it's not in etch's man page either. I wasn't aware of this bug but it has been reported 4 years ago! http://bugs.debian.org/cgi-bin/bugrepo

Re: Re: Decode unixtime

2010-01-16 Thread Brian Ryans
Quoting Clive Standbridge on 2010-01-16 15:31:19: > How about > date -I > date -Iseconds > > Sortable, readable, parseable and standard to boot. Wow, thanks for that Clive. Easier to remember, too. I just tried it in a shell one-liner, and I used a bit less logic to parse it than other me

Re: Re: Decode unixtime

2010-01-16 Thread Clive Standbridge
> > I suggest that you change the way you get the numbers so that they > > are > > both human readable and parsable by simple code. I like date > > +%Y%m%d_%H%M%S > > +%F_%T is what I use when spaces aren't desirable in dates. See my > quoting line for a slightly modified example of it. From my >