6 May
2000
6 May
'00
01:18
On 4 May, Kirk Moore wrote:
Hay....
I need some help... I am trying to figure out Unix time for a certain day at noon lets say....
example... 06/15/00 @ noon <snip>
From a Unix script or prompt, the "date" command will work: date --date="12PM 06/15/2000" +%s
The "+%s" tells 'date' to output the number of seconds since midnight, January 1, 1970. 'date' also accepts relative dates, like: date --date="12PM this sunday" +%s -- Robert Wohlfarth rjwohlfar@bigfoot.com "My theory's right. Reality needs to be fixed." -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/