On Thu, 3 Apr 2003, Eugene van der Pijll wrote:

> And this works. But even more people will use DateTime->now. And then
> a floating time would be wrong.

Why would a floating time be wrong then?

> As an example, the first program I wrote using
> DateTime::Calendar::Mayan.
>
>     use DateTime;
>     my $d = DateTime->now;
>     $d->set_time_zone( 'Europe/Amsterdam' );
>     $d->set_time_zone( 'floating' );
>     print $d->strftime("%A %d %B %Y\n");
>
>     use DateTime::Calendar::Julian;
>     $d = DateTime::Calendar::Julian->from_object( object => $d );
>     print $d->strftime("%A %d %B %Y Julian\n");
>
>     use DateTime::Calendar::Pataphysical;
>     $d = DateTime::Calendar::Pataphysical->from_object( object => $d );
>     print ucfirst $d->strftime("%A %d %B %Y [%*]\n");
>
>     use DateTime::Calendar::Mayan;
>     $d = DateTime::Calendar::Mayan->from_object( object => $d );
>     print $d->date, "\n";

Can you show the output and explain the problems?  Honestly, I have no
clue what this _should_ print.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to