namespace and its purpose d) ignored because the Perl
community says that the DateTime namespace is the One True
Calendrical Namespace or e) none of the above.
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]
ents. I fully accept that you are the driver here and you
> will win the argument if it comes down to it.
Hey, I know! Let's fork and take the TimeDate namespace to make a
superficially similar but completely different set of date/time
routines. ;-) * 5
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]
formatter
$str0 = DateTime::formatdate($format);
# use the $dto object's formatter
$str1 = $dto->formatdate($format);
# format the $dto object using the CustomFormat
$str2 = $dto->formatdate($format, { formatter => CustomFormat } );
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]
7;t see why we can't have a strftime() formatter.
People are used to it and there are gobs of code that use it.
Besides, if we come up with a like-strftime-but-better formatter and
start using it, eventually people will see its merits and choose it
over the strftime formatter.
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]
It doesn't hurt to
ask and if they refuse, then we just continue ignoring the book for
implementation advice.
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]
erator determines what gets
passed to the generator? If it's generating backwards in time it
would be given the lowest date?
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]
Ok, how about this then:
>
> my $format = DateTime::Formats::MySQL->new( ... );
>
> my $dt = $format->parse_datetime( $mysql_dt );
>
> $format->as_timestamp( datetime => $dt, length => 8 );
my $f = DateTime::Formats::Mysql->new(...);
my $dt = DateT
On Wed, Feb 05, 2003 at 11:27:58AM +1100, Rick Measham wrote:
> Now, if I'm not the only one that wants this I'm very happy to volunteer
> writing a patch for this.
Just so you know ... you're not the only one. :-)
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]
kage isn't installed, though.
I haven't looked at the code yet, but would it be useful to ask the
user what their offset is from GMT, then create a dummy TZ from that
offset for testing purposes?
-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]