the date function

the date function

Post by Michae » Fri, 14 Aug 1998 04:00:00



Is there a function that I can use to find yesterdays date or do I have to
write a script to find it

thank you
Michael

 
 
 

the date function

Post by Wolfgang Den » Fri, 14 Aug 1998 04:00:00



>Is there a function that I can use to find yesterdays date or do I have to
>write a script to find it

perl -e '($d,$m,$y)=(localtime(time-86400))[3..5];$m+=1;$y+=1900;print "$m/$d/$y\n";'

Wolfgang Denk

--


In 1750 Issac Newton became discouraged when he fell up a  flight  of
stairs.

 
 
 

the date function

Post by Michael Wa » Fri, 14 Aug 1998 04:00:00


Quote:>Is there a function that I can use to find yesterdays date or do I have to
>write a script to find it

With GNU's date command you can find anything, yesterday's date,
tomorrow's date, date of n days' agao, etc, etc.
--
unix programs: niftp (non-interactive ftp), hide (hide command args),
submit (replace nohup), etc from ftp://www.mindspring.com/users/mwang/unix-prog

 
 
 

1. Date function

Hi,

could you please suggest a method to add and subtract a certain number of
days to a date in Unix, i.e. the date returned by the "date" command?

Thank you in  advance.

Br.
Diego.

2. setterm -store

3. 3Dfx and winfast 3D s900 (i740)

4. Date functions in awk

5. results on "fully HT-aware scheduler" patch

6. Date Function on Unix (hp-ux)

7. IDE card for HDD & CD-ROM

8. date function

9. Date functions

10. Fortran-callable date function

11. crypt() and date() function

12. SSI kills javascript date functions . . .