>
> 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.