Time conversion

2012-12-05 Thread Rod Whitworth
I think I'm suffering from OldTimers Disease ;-) I often have cause to use date -r to show me what the date stamp is in human terms. It is usually in spamd or on some documents I get that are time stamped using the seconds since the epoc. Now I have a need to generate some timestamps of my own

Re: Time conversion

2012-12-05 Thread Paul de Weerd
On Thu, Dec 06, 2012 at 09:31:43AM +1100, Rod Whitworth wrote: | Cluebat? date +%s -- [++-]+++.+++[---].+++[+ +++-].++[-]+.--.[-] http://www.weirdnet.nl/

Re: Time conversion

2012-12-05 Thread ml
On Thu, Dec 06, 2012 at 09:31:43AM +1100, Rod Whitworth wrote: I think I'm suffering from OldTimers Disease ;-) I often have cause to use date -r to show me what the date stamp is in human terms. It is usually in spamd or on some documents I get that are time stamped using the seconds

Re: Time conversion

2012-12-05 Thread Paul de Weerd
On Thu, Dec 06, 2012 at 11:55:37AM +1300, m...@extensibl.com wrote: | On Thu, Dec 06, 2012 at 09:31:43AM +1100, Rod Whitworth wrote: | I think I'm suffering from OldTimers Disease ;-) | | I often have cause to use date -r to show me what the date stamp is | in human terms. | It is usually

Re: Time conversion

2012-12-05 Thread Rod Whitworth
On Wed, 5 Dec 2012 23:47:32 +0100, Paul de Weerd wrote: On Thu, Dec 06, 2012 at 09:31:43AM +1100, Rod Whitworth wrote: | Cluebat? date +%s Ah yes. Reading the date man page won't do one any good unless you follow the pointer to strftime. Thanks for the wakeup which was the result of looking at

Re: Time conversion

2012-12-05 Thread Rod Whitworth
On Thu, 6 Dec 2012 11:55:37 +1300, m...@extensibl.com wrote: On Thu, Dec 06, 2012 at 09:31:43AM +1100, Rod Whitworth wrote: I think I'm suffering from OldTimers Disease ;-) I often have cause to use date -r to show me what the date stamp is in human terms. It is usually in spamd or on some

Re: Time conversion

2012-12-05 Thread Eric Furman
On Wed, Dec 5, 2012, at 09:49 PM, Rod Whitworth wrote: On Thu, 6 Dec 2012 11:55:37 +1300, m...@extensibl.com wrote: On Thu, Dec 06, 2012 at 09:31:43AM +1100, Rod Whitworth wrote: I think I'm suffering from OldTimers Disease ;-) I often have cause to use date -r to show me what the date