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. |
In reply to Re: Date operations
by grep
in thread Date operations
by kidd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |