Afficher un message
Vieux 12/09/2007, 17h05   #11
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Script to compare dates and notify

>
> Cyrus Kriticos wrote:
>>
>> # seconds since 1970-01-01 to midnight
>> $ NOW=$(date -d $(date +'%Y-%m-%d') +'%s') ; echo $NOW
>> 1189548000
>>
>> # seconds since 1970-01-01 to now
>> $ NOW=$(date +'%s') ; echo $NOW
>> 1189569887
>>

The original poster in this thread said she does not have 'date -d'.
She might use the links found here (thanks to Chris Johnson, Stephane
Chazelas et al):
http://cfaj.freeshell.org/shell/cus-faq.html#6


--
Kent's Heuristic:
Look for it first where you'd most like to find it.
  Réponse avec citation
 
Page generated in 0,05481 seconds with 9 queries