FAQ

Search Discussions

1,925 discussions - 8,085 posts

  • Happy (almost end) of April! $DateTime::VERSION = '0.77'; $DateTime::Locale::VERSION = '0.45'; $DateTime::TimeZone::VERSION = '1.46'; Can someone explain what's happening here? Did April vanish? My ...
    Bill MoseleyBill Moseley
    Apr 22, 2016 at 10:11 pm
    Apr 25, 2016 at 2:23 pm
  • If the date for $dt is 20120229, the following produces an error! $dt- set_year($dt1- year + 1); Invalid day of month (day = 29 - month = 2) at /sbcimp/run/pd/cpan/5.8.8-2006.03/lib/DateTime.pm line ...
    Jonathan PeyserJonathan Peyser
    Mar 1, 2012 at 10:14 pm
    May 10, 2012 at 8:54 am
  • I've spent the past week reinventing a wheel. http://www.fysh.org/~zefram/tmp/DateTime-TimeZone-1.900.tar.gz size: 29025 MD5: 812934a0174783eb8bdd37f6c99175d6 SHA1: ...
    ZeframZefram
    Sep 25, 2011 at 12:03 pm
    Sep 27, 2011 at 9:55 am
  • DateTimers, While profiling Sqitch, I found that the biggest suck on its time (now that I have removed Moose and Mouse in favor of Moo) is DateTime. The reason? It loads all of the locales in its ...
    David E. WheelerDavid E. Wheeler
    Aug 5, 2014 at 9:07 pm
    Aug 11, 2014 at 6:51 pm
  • Hi guys, I had a bit of trouble using timezones defined in the Olson etcetera data file. I've had a stab at it and hopefully someone can do something with my pull request ...
    Alfie JohnAlfie John
    Dec 3, 2013 at 12:32 am
    Dec 5, 2013 at 9:57 pm
  • Last night abou 2:15am we had some automated tests fail with this error: Invalid local time for date in time zone: America/Los_Angeles The problem was that (for some reason) we had a duration object ...
    Bill MoseleyBill Moseley
    Mar 8, 2013 at 4:35 am
    Mar 11, 2013 at 5:01 am
  • Our apps (and the modules they use) use DateTime extensively. We have the need to do a lot of common operations on DateTime objects, for example checking if a DateTime object is in the future. So, ...
    Bill MoseleyBill Moseley
    Sep 20, 2011 at 1:10 pm
    Sep 21, 2011 at 2:14 pm
  • Hi, I'm looking to parse a datetime from ISO8601 use DateTime::Format::ISO8601 2012-04-24T10:39:00.000+0000 Which is formatted: YYYY-MM-DDThh:mm:ss.ss[+-]hhmm The support for time parts with this ...
    Carl VincentCarl Vincent
    Apr 24, 2012 at 3:50 pm
    Apr 26, 2012 at 12:04 pm
  • Question: When using DateTime for a large number of instances, it becomes a serious performance drag. A typical application for me involves things like log files: I use DateTime to translate the ...
    Philipp K. JanertPhilipp K. Janert
    May 1, 2012 at 10:29 pm
    May 7, 2012 at 4:25 am
  • I never had any luck finding anything to give me the future DST changes for a timezone so I worked out how to get it on my own, but recently I upgraded from something like DateTime 0.36 to 0.74 and ...
    Anthony BallAnthony Ball
    May 22, 2012 at 8:59 pm
    May 26, 2012 at 1:56 am
  • I looked and couldn't find any names of Indian cities that I recognized: Dehli, New Dehli, Mumbai, Kolkata Bangalore, Madras, Chandigarh, Amritsar, &c., &c., &c. None of the timezones I found ...
    Ted ByersTed Byers
    Aug 17, 2012 at 3:57 pm
    Aug 19, 2012 at 5:58 am
  • As part of the plan for replacing DT:TZ, we discussed the need for a way to list the available timezones, to replace the static DT:TZ:Catalog document. Attached is a prototype of a command-line tool ...
    ZeframZefram
    Mar 4, 2012 at 1:15 pm
    May 8, 2012 at 9:39 pm
  • Following up on http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/2012-March/052645.html and the bug reports http://bugs.debian.org/660404 and http://bugs.debian.org/690908 I've now ...
    Gregor herrmannGregor herrmann
    Dec 22, 2012 at 9:24 pm
    Sep 22, 2013 at 9:00 am
  • Hi, I need to compute an absolute day number (to the day precision) as an index in a 60-day (local timezone) archive of data. A modified (starting at midnight in the local timezone) Julian Day seems ...
    Olivier MenguéOlivier Mengué
    Sep 6, 2011 at 10:19 am
    Sep 6, 2011 at 4:56 pm
  • DateTimers, I got a curious test failure on Windows: http://ppm4.activestate.com/MSWin32-x86/5.14/1400/D/DW/DWHEELER/App-Sqitch-0.911.d/log-20120824T022242.txt The error was: Invalid locale name or ...
    David E. WheelerDavid E. Wheeler
    Aug 27, 2012 at 6:46 pm
    Aug 27, 2012 at 11:54 pm
  • Arthur David Olson and Paul Eggert are being sued by the (new) owner of the copyright on one of the atlases that is much used as a source for the database, claiming that the database infringes on ...
    ZeframZefram
    Oct 6, 2011 at 11:42 pm
    Mar 4, 2012 at 7:48 pm
  • Shortly available from all good CPAN mirrors: file: $CPAN/authors/id/Z/ZE/ZEFRAM/Time-OlsonTZ-Data-0.201112.tar.gz size: 214778 bytes md5: fcfc9e47de53ee49d4f1f417add98f4b Changes from the previous ...
    ZeframZefram
    Oct 10, 2011 at 5:07 am
    Oct 10, 2011 at 11:26 am
  • Hi, I'd like to establish what's going to happen about packaging my CPAN module Time::OlsonTZ::Data for OS distros. I'm writing to (as far as I can tell) the current Debian and Fedora maintainers of ...
    ZeframZefram
    Mar 19, 2012 at 8:15 pm
    Mar 24, 2012 at 8:24 pm
  • We have a large project that we would like to use our "local" time zone across many calls to DateTime. We are considering implementing something like this: ### package DateTimeX::Local; use parent ...
    Mark StosbergMark Stosberg
    Oct 1, 2012 at 3:46 pm
    Oct 1, 2012 at 4:28 pm
  • I need to obtain UTC date-time strings from an epoch input. The UTC output needs to take leap-seconds into account. I wrote this script to test things: #!/usr/local/bin/perl use strict; use ...
    Andrew DavisAndrew Davis
    Apr 5, 2012 at 8:32 pm
    Apr 7, 2012 at 2:38 pm
  • Hello I am attempting to create a number of DateTime::Span objects for the past hour, past 24 hours, past week etc. The code I am using looks like this: my $last24hours = DateTime::Span- ...
    David PottageDavid Pottage
    Aug 27, 2013 at 9:02 am
    Aug 28, 2013 at 10:12 am
  • When I try to access the http://datetime.perl.org/wiki/datetime/ website, I get: --- begin of copy-paste Service Temporarily Unavailable The server is temporarily unable to service your request due ...
    Jean ForgetJean Forget
    Sep 27, 2013 at 5:30 am
    Oct 5, 2013 at 3:08 am
  • Hi! Given a date and time zone, is it possible to obtain the first time of that date? For example. in America/Sao_Paulo, 2013/10/20 started at 01:00 rather than the usual midnight. I've also asked ...
    Eric BrineEric Brine
    Dec 27, 2013 at 6:29 pm
    Dec 31, 2013 at 4:24 am
  • Hi all, I'm puzzling over the following which may just be a misunderstanding of the format string or something far more fundamental :-). I'm attempting to parse datetimes of the following format: ...
    Andrew O'BrienAndrew O'Brien
    Sep 8, 2011 at 11:51 pm
    Sep 12, 2011 at 9:38 am
  • Hi, I recently ran into TimeZone troubles when trying to create a simple DateTime object representing a simple date: Example1: DateTime- new(year = 2011, month = 10, day = 16, time_zone = ...
    Maros KollarMaros Kollar
    Sep 26, 2011 at 2:50 pm
    Sep 27, 2011 at 1:39 pm
  • use DateTime::Format::Oracle; $ENV{NLS_TIMESTAMP_FORMAT} = 'DD-MON-RR HH.MI.SSXFF AM'; $s = '15-FEB-03 02.39.06.167901 PM'; $dt = DateTime::Format::Oracle- parse_timestamp($s); print $dt- nanosecond, ...
    Jon BjornstadJon Bjornstad
    Oct 11, 2011 at 10:40 pm
    Oct 12, 2011 at 1:45 am
  • Hi! (long story at the top, suggested patch attached, grep for 'the patch' if you're in a hurry..) Recently I again stumble upon the old problem/issue of non-existent datetimes caused by DST. As you ...
    Thomas KlausnerThomas Klausner
    Jun 27, 2012 at 12:46 am
    Jul 2, 2012 at 10:34 am
  • http://serverfault.com/questions/403732/anyone-else-experiencing-high-rates-of-linux-server-crashes-today -dave /*============================================================ http://VegGuide.org ...
    Dave RolskyDave Rolsky
    Jun 30, 2012 at 8:14 pm
    Jul 2, 2012 at 10:20 am
  • So, I found some old that wrapped a set_time_zone in an eval. my $dt = DateTime- new( year = 2013, month = 3, day = 10, hour = 2, minute = 4, time_zone = 'floating', ); eval { $dt- set_time_zone( ...
    Bill MoseleyBill Moseley
    Mar 13, 2013 at 2:35 am
    Mar 14, 2013 at 11:39 am
  • I need to use DateTime functionality and would like to know if the particular functionality I need already exists on CPAN. I need to construct a series of time segments which do not overlap but which ...
    James E KeenanJames E Keenan
    Aug 11, 2013 at 5:07 pm
    Sep 10, 2013 at 1:56 am
  • This is a long-shot/stabbing-in-the-dark post -- and I'm guessing this might not have anything to do with DateTime. Anyone have any suggestions what might be happening here? I have this code running ...
    Bill MoseleyBill Moseley
    Jan 7, 2014 at 5:04 am
    Jan 8, 2014 at 5:39 pm
  • I would like to simplify our localization of dates and, if possible, just use this format for timestamps: $dt- strftime( '%x %X' ); First question, is there any difference between the above and this? ...
    Bill MoseleyBill Moseley
    Jan 16, 2014 at 10:29 pm
    Jan 27, 2014 at 3:55 am
  • I was optimizing some log-parsing script today, and found DateTime::Format::Strptime to be bottleneck. Out of curiosity I wrote simple benchmark. Code is here: http://pastebin.com/PU8nXGPW Results ...
    Marcin KasperskiMarcin Kasperski
    Jan 30, 2014 at 7:08 pm
    Jan 30, 2014 at 11:26 pm
  • Folks, I know this is going to seem like a dumb question, but please bear with me. What consequences will PERL programmers face with DateTime, particularly with time zone handling and calculations, ...
    Juan JimenezJuan Jimenez
    Jul 17, 2014 at 2:44 pm
    Jul 17, 2014 at 3:48 pm
  • To all users of DateTime::Calendar::Discordian, my best wishes for YOLD 3181 And to all users of Julian and Gregorian calendars (through the use of DateTime::Calendar::Julian and DateTime), happy new ...
    Jean ForgetJean Forget
    Jan 15, 2015 at 8:54 pm
    Jan 19, 2015 at 6:29 am
  • Dear List, A while back, I needed to some routines to parse timestamps so I started using DateTime::Format::Strptime. The times were uniformly formatted like "2012-03-13T07:43:07-07:00". That ...
    David McMathDavid McMath
    Mar 15, 2012 at 9:43 pm
    Mar 16, 2012 at 3:38 pm
  • We have been using formats %c, %x and %X for localizing dates based on Locale. Mostly works ok, but for Korean we are getting this: 2012. 10. 18. 오후 4:09:05 where (I've been told) we would like this ...
    Bill MoseleyBill Moseley
    Oct 23, 2012 at 5:37 pm
    Oct 25, 2012 at 10:16 pm
  • I've just run into an odd problem while testing one of my modules that has me stumped. I'm running Perl 5.8.8 on AIX 6.1. I'm testing a new module that uses one of my other modules. The second module ...
    Ursetti, JerryUrsetti, Jerry
    Nov 8, 2012 at 5:01 pm
    Nov 8, 2012 at 6:12 pm
  • There's an old SF project that has an SVN repo with many, many DateTime modules - http://sourceforge.net/projects/perl-date-time AFAICT, no one is using the the SVN repo any more. The last holdout ...
    Dave RolskyDave Rolsky
    Dec 16, 2012 at 11:35 pm
    Aug 16, 2013 at 1:39 pm
  • Hi, I'm looking for a way to find the size of a DateTime::SpanSet, i.e. the number of DateTime:Span objects in it. I'm not looking for a DateTime::Duration object, as the size() method returns. Kind ...
    Andreas IsbergAndreas Isberg
    Sep 2, 2013 at 10:32 am
    Sep 4, 2013 at 6:16 pm
  • Another new version of my DT:TZ rewrite. CPAN-style tarball at http://www.fysh.org/~zefram/tmp/DateTime-TimeZone-1.902.tar.gz Public git repo at git://lake.fysh.org/zefram/DateTime-TimeZone.git The ...
    ZeframZefram
    Sep 21, 2013 at 1:08 pm
    Sep 23, 2013 at 9:09 am
  • Hello datetime, As you may know, Moscow Time has been UTC+4 year-round since 2011, but will change to UTC+3 permanently on 25 October 2014. http://en.wikipedia.org/wiki/Moscow_Time Would there be a ...
    Joe FasanoJoe Fasano
    Sep 16, 2014 at 6:24 pm
    Sep 17, 2014 at 6:20 pm
  • Hello all, I am trying to implement in Act, the software behind most Perl conference sites, a feature someone asked for: timezone in the iCal export (which is generated with Data::ICal). Looking at ...
    Sébastien Aperghis-TramoniSébastien Aperghis-Tramoni
    Jul 12, 2011 at 11:49 pm
    Jul 13, 2011 at 7:07 am
  • Hi Folks I'm converting a home-grown module into a CPAN-ready one, which I'm planning to call DateTime::Format::Gedcom. The spec for GEDCOM dates (of which there are several) is in ...
    Ron SavageRon Savage
    Sep 6, 2011 at 1:46 am
    Sep 6, 2011 at 2:13 pm
  • Right after Dave published DateTime-0.78 I spotted a typo in the description of a test that was insufficiently updated by my patch for rt-79845. Sorry! -Martin diff -rup ...
    Martin BeckerMartin Becker
    Nov 19, 2012 at 3:02 pm
    Nov 20, 2012 at 11:02 pm
  • Ron Hill, are you still active on the DateTime list? From August 2000 until October 2003, you have released several versions of Astro::Sunrise. From March 2003 to March 2004, you have released ...
    Jean ForgetJean Forget
    Jun 26, 2013 at 8:43 pm
    Jul 12, 2013 at 5:29 am
  • I was looking at http://search.cpan.org/~drolsky/DateTime-1.03/lib/DateTime.pm where it says: The delta_md and delta_days methods truncate the duration so that any What I'm wondering is if the dates ...
    Bill MoseleyBill Moseley
    Sep 16, 2013 at 3:21 am
    Sep 16, 2013 at 12:50 pm
  • Hi, I'm trying to find a way to perform math with the duration of a DateTime::SpanSet. I'd prefer it to be in seconds, but I can't find anything from it in the documentation. What I did find is that ...
    Andreas IsbergAndreas Isberg
    Nov 29, 2013 at 11:59 am
    Nov 30, 2013 at 3:09 pm
  •  my $dt1 = DateTime- new( year = 2014, month = 3, day = 30, hour = 3, minute = 30, second = 0, time_zone = 'Europe/Kiev',); return an error "Invalid local time for date in time zone: Europe/Kiev" ...
    АндрейАндрей
    May 7, 2014 at 2:59 pm
    May 8, 2014 at 1:37 pm
  • min() and start(), and max() and end() do exactly the same thing. DateTime::SpanSet has it right (implemented and documented). DateTime::Span has it implemented, but not documented (the example ...
    Flavio S. GlockFlavio S. Glock
    May 17, 2016 at 8:14 am
    May 17, 2016 at 9:24 am
Group Navigation
period‹ prev | Latest | first ›
Group Overview
groupdatetime @
categoriesperl
discussions1,925
posts8,085
users641
websitemetacpan.org...

Top users

Autarch: 1908 posts Fglock: 649 posts Joshua Hoblitt: 551 posts Rickm: 338 posts Zefram: 248 posts Pijll: 196 posts Ben Bennett: 195 posts Matt Sisk: 165 posts Hill, Ronald: 142 posts Rich Bowen: 140 posts Iain 'Spoon' Truskett: 118 posts John Peacock: 110 posts John Siracusa: 99 posts Daisuke Maki: 94 posts Flavio S. Glock: 86 posts David E . Wheeler: 73 posts Bruce Van Allen: 67 posts Rick Measham: 67 posts Yitzchak Scott-Thoennes: 65 posts Rick Measham: 63 posts
show more
Archives