Arunbear has asked for the wisdom of the Perl Monks concerning the following question:
are there any CPAN modules which allow you to create a time from a string using the formats that CGI.pm recognizes:
I've created a session class (which wraps Apache::Session) for a web app and want to be able to do something like $session->store(login => 1, expires => '+10m') (I know that CGI::Session can do this - it was my 1st choice - but I can't use that module as it does not work on Win98 )+30s 30 seconds from now +10m ten minutes from now +1h one hour from now -1d yesterday (i.e. "ASAP!") now immediately +3M in three months +10y in ten years time
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to create CGI.pm like time strings?
by shockme (Chaplain) on Nov 24, 2003 at 22:15 UTC | |
|
Re: How to create CGI.pm like time strings?
by b10m (Vicar) on Nov 24, 2003 at 22:15 UTC | |
|
Re: How to create CGI.pm like time strings?
by iburrell (Chaplain) on Nov 24, 2003 at 22:30 UTC | |
by Zed_Lopez (Chaplain) on Nov 24, 2003 at 23:29 UTC | |
|
Re: How to create CGI.pm like time strings?
by jdtoronto (Prior) on Nov 25, 2003 at 01:19 UTC | |
|
Re: How to create CGI.pm like time strings?
by Anonymous Monk on Nov 24, 2003 at 22:58 UTC |