How to Get Millisecond Precision Using DateTime::Format::Epoch

2014-06-05 Thread Jim Monty
$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

Re: How to correctly add a duration to not have it result in invalid date?

2013-03-10 Thread 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

Re: How to correctly add a duration to not have it result in invalid date?

2013-03-08 Thread Jim Monty
Outlook does. I suspect it's how most modern computer software handles timestamps. Jim Monty

datetime@perl.org

2012-08-18 Thread 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

datetime@perl.org

2012-08-17 Thread 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

datetime@perl.org

2012-08-17 Thread 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

Re: Planning DateTime::Format::Gedcom

2011-09-06 Thread 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

Re: Converted datetime.perl.org to run on Silki

2010-09-28 Thread Jim Monty
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

Re: Converted datetime.perl.org to run on Silki

2010-09-28 Thread Jim Monty
ving difficulty registering. I may have goofed it. Now I'm getting HTTP 404 messages. Jim Monty jim.mo...@yahoo.com

Re: datetime::duration doesn't do what I expect and doesn't produce an error either

2010-07-16 Thread Jim Monty
om some exapansion and modernization. It seems not to have in it some of the questions that are frequently asked here. Jim Monty

Re: ddMONyy not being parsed correctly?

2010-05-18 Thread 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

Re: time_zone and DateTime::Format::Strptime

2009-12-15 Thread 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

Re: Win32 help for DT::TimeZone

2009-09-11 Thread 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

Module To Parse Format 'Friday, March 13, 2009 04:20 PM EST'

2009-03-16 Thread Jim Monty
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

DateTime CLDR Support and ISO 8601 Extended Time Zone Designator With Colon

2009-03-15 Thread 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

Difference Between America/New_York and EST5EDT When Converting Pre-Time-Zone Times

2009-03-14 Thread 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

Re: [ANNOUNCE] DateTime::Format::Strptime 1.0900

2009-02-22 Thread 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

Re: ANNOUNCE: DateTime 0.45

2008-11-13 Thread Jim Monty
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

Re: ANNOUNCE: DateTime 0.45

2008-11-13 Thread Jim Monty
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

Re: How to Compute Hours In a Day?

2008-10-20 Thread jim . monty
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

Re: How to Compute Hours In a Day?

2008-10-19 Thread jim . monty
. 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

How to Compute Hours In a Day?

2008-10-19 Thread jim . monty
ay to have 25 hours. I want to know how best to compute these numbers of hours in each day.   Jim Monty

CLDR 1.6 and DateTime::Locale 0.4001

2008-07-06 Thread 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

Installing and Maintaining DateTime Modules On Windows XP SP2

2007-10-03 Thread 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

Cannot Install DateTime For ActivePerl Under Windows XP

2004-02-04 Thread 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]