abhishek jain wrote:
>perl -e 'use DateTime;print DateTime->now()->hms()';
>
>i want to print the correct time but it is dispaying the previous timezone's
>time.
It's using the universal timezone (UTC), not paying attention to *any*
timezone setting. You have to tell it to use a timezone:
perl -
hi,
i own a vps and have changed the timezone of that server. now i have
installed DateTime and is using the following command
perl -e 'use DateTime;print DateTime->now()->hms()';
i want to print the correct time but it is dispaying the previous timezone's
time.
Now i have mysql also installed a
0.36 2007-01-18
[ BUG FIXES ]
- For infinity, use 100 ** 1000 instead of 100 ** 100 ** 100. This may
fix the problems with infinity on some platforms (or may
not). Suggested by Bjorn Tackmann. See RT #17390, #19626, and
#22392.
- Require DateTime::TimeZone 0.59, which includes a similar
0.59 2007-01-18
- When trying to find the local timezone for a machine based on
/etc/localtime, ignore /usr/share/zoneinfo/posixrules. This fixes a
bug seen on FreeBSD 6.2. Reported by . RT #24026.
- For infinity, use 100 ** 1000 instead of 100 ** 100 ** 100. This may
fix the problems