in reply to Date operations
You could also look at Time::Local which does the opposite of localtime
another (inelegant) solution would be to take the time() and add the seconds to get to the proper date from today
localtime(time() + (60 * 60 * 24 * 4) + (60 * 60 * 24 * $days)) # add +4 days localtime(time() - (60 * 60 * 24 * 7) + (60 * 60 * 24 * $days)) # subt +ract 1 week
| Just me, the boy and these two monks, no questions asked. |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Date operations
by kidd (Curate) on Aug 11, 2002 at 23:16 UTC | |
by grep (Monsignor) on Aug 11, 2002 at 23:36 UTC | |
by fglock (Vicar) on Aug 12, 2002 at 20:20 UTC |