DateTime reviews

cpanratings
 

RSS | Module Info | Add a review of DateTime

DateTime (1.06)

Extremely useful for programming commercial analytics

Andrii - 2014-01-10T00:23:20 (permalink)

1 out of 1 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.65)

Amidst all the glowing reviews may I add a reminder that, as with everything, there's a catch: runtime performance. On my PC, the speed of creating a DateTime object is just around 6000/sec. If you use DateTime intensively, it can quickly add up.

Imagine serving a web page that fetches 50 rows from database, where for convenience you convert each date column to a DateTime object, and you have 120 requests/sec coming in... That's already 6000 objects (an extra second!).

Which is unfortunate because DateTime is so wonderful, convenient, correct, complete and all that. So one approach you can use might be to delay converting to DateTime object until necessary.

Steven Haryanto - 2010-10-29T01:17:00 (permalink)

6 out of 6 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.60) ****

I like the way this is going, but right now it's way too spread out. It needs a cookbook or something. Like the XML modules, this one seems to require reading 10,000 pods to try to find everything you need.

While some things seem to fit together well, others don't. The ::Format tree seems to be somewhat random in invocation and I find I need 5 if blocks and 3 eval {} sections to do what some of the more venerable date and time modules can do in one line.

Still, this is clearly the future of datetimes in perl.

Paul Miller - 2010-07-13T15:31:09 (permalink)

5 out of 6 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.53) *****

The cleanest, sanest module for manipulating dates within Perl I've seen so far - a DateTime object has become my first choice for most date operations within Perl.

It's slightly slow (on one of my systems, perl -MDateTime took about 0.4s, compared to 0.1s for Date::Calc), but in most cases, I think it's worth the impact for easy, clean code. So, DateTime is my first choice, Date::Calc is my choice when speed is of the essence, and for working with date ranges, I'll occasionally turn to Date::Range.

David Precious - 2010-01-21T16:00:37 (permalink)

5 out of 5 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.50) *****

*THE* definitive date/time handling module in Perl (and even maybe in all major programming languages). Can't believe I went through all the pain of reinventing the wheel, and using various date/time modules of various quality & interface. If only I had known DateTime earlier.

Look no more, DateTime it is.

David Garamond - 2009-10-07T01:32:56 (permalink)

4 out of 5 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.45) *****

DateTime is the king of date+time management modules on CPAN. It's easy to use, comprehensive, with very good documentation, lots of auxiliary modules and extensions. Don't leave home without out.

You should use it instead of doing your own date calculations by hand.

Shlomi Fish - 2008-11-15T12:55:58 (permalink)

3 out of 4 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.4305) *****

You want sane datetime handing in Perl. You want this module. Does the job. Few odd corners in the API - but leaps and bounds ahead of everything else that I've played with on CPAN for accurate date/time handling.

Adrian Howard - 2008-10-05T07:37:44 (permalink)

6 out of 6 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.37) *****

Simply the best date and time manipulation module in my opinion.
The interface is really clean and consistent which is a refreshing change compared to some of the alternatives.
DateTime cover almost all needs for date manip and does so with a modular approach which is more to my liking than the monolithic approach taken by most of the alternatives. Timezones work perfectly and without too much hassle (I had some nasty surprises in other modules about this), date calcul is easy, there are a lot of parsing and formatting DateTime::Format::* modules (which arguably depends on too much other modules but at least you have plenty of choices).

It's not perfect yet but it's constantly improving and has already reached it's goal of being the prime time module in Perl.

Chaddaï Fouché - 2007-04-19T15:31:06 (permalink)

8 out of 8 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.34) ***

Powerful date and time OO framework that provides the means to add and subtract dates and times, receive ranges of dates and times, and more - up to nano-second resolution.

Does not seem to understand the ISO-8601 as input, though that does appears to be the standard output -- to a degree:

The 'now' method defaults to UTC, which is confusing: I would prefer it default to the real-world time (including DST), since that would probably cover the majority of use cases.

Timezone parsing is not well documented, so intuative actions fail:
`my $t = DateTime->now(); warn $t - 1;` results in "Can't call method "time_zone" without a package or object reference." The "datetime" and "iso8601" methods do not output a timezone identifier at all, neither a 'Z' nor an offest.

But then the module is (after what seems like many years) still in development, so I am sure this will all be ironed out soon.

Lee Goddard - 2006-08-01T04:49:11 (permalink)

5 out of 7 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.30) *****

Awesome! solved all of my problems with date and time.

Howard Lo - 2006-04-15T15:03:03 (permalink)

4 out of 8 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.34) ***

This module does more than you'll ever need for Date-time calculations and handling. I'd call it the de facto standard, were it not for the load time. Adding a "use DateTime" statement to a script adds a quarter-second to the start-up time on my machine (admittedly it's an old machine, but it's hardly a klunker). So I'm hesitant to use it for simple date-time manipulations.

I'm also curious why there's no constructor to take the stringified date/time and reinstantiate it as a DateTime object. (Or if there is, it's not documented.) If I have to use an additional module or write my own parser, then it's less useful. Date::Calc does what I need and loads significantly faster.

Robert Rothenberg - 2006-03-01T06:53:40 (permalink)

9 out of 10 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.28) *****

This is a great module. It gives you an object representing a date/time from which it is easy to extract the constituent parts (day, month, hour ...), or format the whole thing into a human readable string (built in strftime). It also supports common date/time comparisons and manipulations (truncate to 1st of month, add an interval ...).

My one complaint would be that the base class does not directly understand ISO8601 dates. This functionality is relegated to another distribution with a number of dependencies.

Grant McLean - 2005-04-21T18:45:07 (permalink)

2 out of 3 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.18) *****

Not just the holy grail of a unified Perl date framework, not just " best Perl date module so far" as one reviewer said, I would venture that this is *only* DateTime library that I've ever used in *any* language that gets timezones right. And DateTime doesn't just get timezones right, but it gets everything right, and provides a real exploration of humans wacky concepts of time (recurrences, open ended, infinite, floating) without sacraficing clarity.

kellan - 2003-11-11T09:22:44 (permalink)

4 out of 4 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.17) ****

The best Perl date module so far.

John Siracusa - 2003-09-06T20:06:23 (permalink)

1 out of 3 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.1601) *****

Finaly, a unified Date and Time handling framework!

jhoblitt - 2003-08-13T23:21:16 (permalink)

0 out of 2 found this review helpful. Was this review helpful to you?  Yes No

DateTime (0.1601) *****

Great Module!! Still in development

mothra - 2003-08-13T10:43:37 (permalink)

0 out of 3 found this review helpful. Was this review helpful to you?  Yes No