in reply to scalar localtime() to timestamp
You're relying on your users to give you a date in a pretty specific format. They're likely not to oblige.
You can either write the form to give the pieces of the date in separate fields, maybe with selections or js validation, or else generate the timestamp yourself with a call to scalar gmtime. If that format doesn't suit you, consult 'man strftime' and call POSIX::strftime $fmt, gmtime;
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: scalar localtime() to timestamp
by jonnyfolk (Vicar) on Oct 09, 2003 at 05:14 UTC |