in reply to 24 hours ago localtime
How accurately do you want that "24 hours" to be?
perl> print scalar localtime;; Wed Dec 7 02:30:59 2005 perl> print scalar localtime( time() - 24*60*60 );; Tue Dec 6 02:31:01 2005
This works okay, but it may not account for things like summertime, leap days etc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: 24 hours ago localtime
by Anonymous Monk on Dec 07, 2005 at 02:58 UTC |