On Mon, 21 Jul 2003, Flavio S. Glock wrote:

> I'd like to have this in DateTime:
>
>   set( time_zone => $tz );

You mean as opposed to set_time_zone?

>   set( locale => $loc );

This already exists;

>   get( time_zone/locale/year/month/etc );
>   # returns a number or an object
>
>   get_str( time_zone/locale/year/month/etc );
>   # returns a formatted number or a name

No, I'd rather not.  That's ugly.

>   can_set;  # returns qw/time_zone locale year month etc/
>   can_get;  # returns qw/time_zone locale year month week etc/

This is a bit ugly too.  There's probably other ways to achieve what you
want.


-dave

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

Reply via email to