$timestamp;
my $dt = $parser->parse_datetime($timestamp);
# This prints 2013-01-18T18:27:22.000, not 2013-01-18T18:27:22.850
say $dt->format_cldr('-MM-ddTHH:mm:ss.SSS');
# This prints 13003007242000, not 130030072428507103
say $parser->format_datetime($dt);
exit 0;
__END__
130030072428507103
2013-01-18T18:27:22.000
13003007242000
Jim Monty
never
done the kind of scheduling software programming we're discussing here.
What I've written in this email is based on the little research I did to
try to answer your questions as best I could. If, knowing this, you say
I should have kept my pie hole shut from the beginning, I won't argue
with you. Hopefully, however, I've contributed at least one useful idea.)
--
Jim Monty
Tempe, Arizona USA
Outlook does. I suspect it's how most
modern computer software handles timestamps.
Jim Monty
Unlike the
rest of Arizona, the Navajo Nation observes daylight saving time. So
Window Rock is in the 'America/Shiprock' time zone. As it happens,
Shiprock, a representative location in the Navajo Nation, is in New Mexico,
not in Arizona.
Salt Lake City is a big, well-known city that, like Phoenix, is in the
U.S. Mountain Time Zone. But Utah observes daylight saving time, so Salt
Lake City is in the 'America/Denver' time zone.
When you look up Bombay in the GeoNames geographical database, you get
Mumbai. When you look up Calcutta, you get Kolkata. When you look up
New Delhi, you get New Delhi. All of these cities in India are in the
'Asia/Kolkata' time zone.
Jim Monty
askgeo.com/
http://askgeo.com/database/TimeZone
http://www.geonames.org/export/web-services.html#timezone
http://stackoverflow.com/questions/262264/
http://stackoverflow.com/questions/237023/
http://stackoverflow.com/questions/55901/
http://stackoverflow.com/questions/41504/
Jim Monty
zone database contains only
one zone, namely Asia/Kolkata."
Read all about the tz database itself in the Wikipedia article
http://en.wikipedia.org/wiki/Tz_database. The Perl DateTime module
DateTime::TimeZone uses the tz database.
Jim Monty
t and point to other GEDCOM resources:
http://en.wikipedia.org/wiki/GEDCOM
http://en.wikipedia.org/wiki/GEDCOM_data_validation
--
Jim Monty
Tempe, Arizona USA
Dave Rolsky wrote:
> Jim Monty wrote:
> > I'm having difficulty registering. I may have goofed it. Now I'm getting
> > HTTP 404 messages.
>
> It was up and down while I tried to fix a bug.
>
> I see your account, so try going to the confirmation URI one mo
ving difficulty registering. I may have goofed it. Now I'm getting
HTTP 404 messages.
Jim Monty
jim.mo...@yahoo.com
om some exapansion
and modernization. It seems not to have in it some of the questions that are
frequently asked here.
Jim Monty
locale => 'en_US',
on_error => 'croak',
)->parse_datetime('01MAY10');
print $dt, "\n";
D:\>perl mayday.pl
2010-05-01T00:00:00
D:\>
Jim Monty
How about an entirely new, high-level abstraction layer: DateTime::Express (or
DateTime::Represent)? It would subclass DateTime::TimeZone, DateTime::Locale,
DateTime::Format and possibly others.
--
Jim Monty
er de facto standard
thing).
Jim Monty
- Original Message
From: Jim Brunette
To: Dave Rolsky
Cc: datetime
Sent: Friday, September 11, 2009 2:05:37 PM
Subject: Re: Win32 help for DT::TimeZone
Here's my guess...
# Failed test 'Kamchatka Standard Time - found valid Olson ti
Is there a ready-made DateTime::Format module to convert dates and times in the
following format to DateTime objects?
Friday, March 13, 2009 04:20 PM EST
I'm an accidental programmer. I'm afraid to roll my own DateTime::Format::Foo
module.
--
Jim Monty
T12:45:00.000-08:00 2009-03-08T16:45:00.000-04:00
2015-01-28T09:30:00.000-08:00 2015-01-28T12:30:00.000-05:00
C:\>
Is there another, better way to handle this? Is DateTime::Format::ISO8601
likely ever to format dates and times as well as parse them?
--
Jim Monty
t;$dt1 =
DateTime::Format::ISO8601->parse_datetime('1600-12-31T16:00:00.000-08:00'); my
$dt2 = $dt1->clone()->set_time_zone('EST5EDT'); print
$dt2->format_cldr('-MM-ddTHH:mm:ss.SSSZ');"
1600-12-31T19:00:00.000-0500
C:\Perl\site\lib\DateTime\TimeZone>
--
Jim Monty
'Params::Validate' => '0.64',
},
);
sub MY::postamble {
! return $^O eq 'MSWin32'?
! <<'MAKE_FRAG'
test_more :: pure_all
+ SET PERL_DL_NONLAZY=1
+ $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e"
+ "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" t/more/*.t
+ MAKE_FRAG
+ :
+ <<'MAKE_FRAG';
+ test_more :: pure_all
PERL_DL_NONLAZY=1 $(FULLPERLRUN) "-MExtUtils::Command::MM" "-e"
"test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" t/more/*.t
MAKE_FRAG
}
C:\DateTime\Modules>
When I took the word 'SET' out from before 'PERL_DL_NONLAZY=1', I just got a
different error number.
Any suggestions?
--
Jim Monty
jim.mo...@yahoo.com
Dave Rolsky wrote:
> Jim Monty wrote:
> > I just installed DateTime 0.45 on ActivePerl v5.8.8 using the ActiveState
> > Perl Package Manager rather than by compiling it myself. How can I be
> > certain I'm using the XS version of DateTime and not the Pure Perl versio
I just installed DateTime 0.45 on ActivePerl v5.8.8 using the ActiveState Perl
Package Manager rather than by compiling it myself. How can be certain I'm
using the XS version of DateTime and not the Pure Perl version?
--
Jim Monty
From: Dave Rolsky &l
Eugene van der pijll wrote:
>Jim Monty schreef:
>> I want to iterate the time zones of the world to generate a report of
>> all days that aren't exactly 24 hours. I want to handle
>> America/Caracas and America/Sao_Paulo correctly. You mentioned
>> 2007-12-09 was 24
. I want to handle America/Caracas and
America/Sao_Paulo correctly. You mentioned 2007-12-09 was 24.5 hours long in
Venezuela. This is precisely the kind of outliers I'm after.
So I'm looking for the best, most canonical, most
true-to-the-spirit-of-DateTime way to accomplish this using, presumably,
DateTime::Duration and possibly DateTime::Format::Duration.
Jim Monty
ay to have 25 hours. I want to know how best to compute these
numbers of hours in each day.
Jim Monty
ious
about keeping DateTime::Locale similarly up-to-date. :-)
Happily for indefatigable Dave, the CLDR is updated much less
frequently than the Olson database is.
(Thank you once again, Dave, for all your hard work on the DateTime modules!)
--
Jim Monty
-date as practically possible and I want
to do this, too, using PPM.
How can I accomplish these several goals?
I suppose what I'm really asking is this: What's the best PPM
repository for DateTime modules?
--
Jim Monty
oblem?
Warning: prerequisite Pod::Man 1.14 not found.
Actually, I do have Pod::Man installed!
# Pod::Man -- Convert POD data to formatted *roff input.
# $Id: Man.pm,v 1.34 2002/07/15 05:46:00 eagle Exp $
Any ideas?
--
Jim Monty
[EMAIL PROTECTED]
25 matches
Mail list logo