Forgive me for I have displayed my ignorance.
Cheers!
Rick
On Fri, 7 Feb 2003, Rick Measham wrote:
Would you consider letting the new() method optionally take a
DateTime object?
There's a "DateTime->from_object" method already.
Extending further we could move other stuff too:
my $here =
On Fri, 7 Feb 2003, Rick Measham wrote:
> Would you consider letting the new() method optionally take a DateTime object?
There's a "DateTime->from_object" method already.
> Extending further we could move other stuff too:
> my $here = DateTime->new(datetime=>$rth, hour => 19);
> which would set
The awkward workaround is this:
my $here = DateTime->new( time_zone => 'Australia/Melbourne',
map { $_ => $rth->$_() }
qw( year month day hour minute second ) );
That should do what you want, which is create two datetime objects with
the same
On Fri, 7 Feb 2003, Eugene van der Pijll wrote:
> Probably,
>
> $rth->set_time_zone('floating');
> $rth->set_time_zone('Australia/Melbourne');
>
> should do the trick. I don't know if it does at the moment, (are
> floating times implemented yet?), but it should eventually.
Yeah, that'd work too.
Rick Measham schreef:
> Now maybe we need $rth->move_internal_timezone('Australia/Melbourne');
>
> Or I need to figure some other way of doing this. (Any help on a workaround
> would be great)
Probably,
$rth->set_time_zone('floating');
$rth->set_time_zone('Australia/Melbourne');
should do the t
On Fri, 7 Feb 2003, Rick Measham wrote:
> A while back Dave asked us about timezones and should setting a timezone
> move the internal representation or the external. We all agreed on the
> external. Mainly because we couldn't think of a use for internal. Well, for
> the first time ever, I'm using
Hey Everyone!
A while back Dave asked us about timezones and should setting a timezone
move the internal representation or the external. We all agreed on the
external. Mainly because we couldn't think of a use for internal. Well, for
the first time ever, I'm using DateTime and I need to change the