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 -e 'use DateTime;print DateTime->now(time_zone => "local")->hms()';

-zefram

Reply via email to