in reply to Re^2: convert local time to unix epoch time
in thread convert local time to unix epoch time
From DateTime doc:
The time_zone parameter can be either a scalar or a DateTime::TimeZone object. A string will simply be passed to the DateTime::TimeZone->new method as its "name" parameter. This string may be an Olson DB time zone name ("America/Chicago"), an offset string ("+0630"), or the words "floating" or "local". See the DateTime::TimeZone documentation for more details.
From DateTime::TimeZone :
If the "name" parameter is "local", then the module attempts to determine the local time zone for the system.
If a local time zone is not found, then an exception will be thrown.
...For me, at least, it throws actually an exception ;)
hth,
PooLpi
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: convert local time to unix epoch time
by ikegami (Patriarch) on Feb 04, 2009 at 13:39 UTC |