On Tue, 2003-08-12 at 07:11, Joshua Hoblitt wrote:
> > While I'm thinking of it, I'd like to be able to set names and
> > short-names for offsets. I have a list of short names in Strptime, but
> > I've love to be able to get these back from TimeZone somehow. Just like
> > we do with Olsen (or is it Olson, one's the twins, one's the time, can't
> > ever remember which!).
> 
> This is exactly what DT::TZ::Alias does.

It does? How? From what I can make out, Alias just allows me to create
aliases. If I create an alias 'EST' => 'UTC', then the short name I get
back would be UTC right? Or if I create 'EST' => 1000, then I don't get
a short name, I get '1000'. 

What I want is the reverse of what alias does. Or rather I'd like
timezone to remember what value it was created with. If I create an
alias 'EST' => 'UTC' and then create a datetime with 'EST', I'd like to
get EST as the name rather than UTC.

What do people think? I can provide patches for this if I'm not the only
one who'd find it useful.

Cheers!
Rick

Reply via email to