[rt.cpan.org #79845] [PATCH] sub-second precision and rounding

2012-10-01 Thread Dave Rolsky via RT
URL: https://rt.cpan.org/Ticket/Display.html?id=79845 On Tue Sep 25 07:27:53 2012, MHASCH wrote: To demonstrate that the current rounding behaviour is not quite thought through, try: use DateTime 0.76; my $d = DateTime-new( year = 2012, month = 9,

[rt.cpan.org #79845] [PATCH] sub-second precision and rounding

2012-09-25 Thread Martin Becker via RT
URL: https://rt.cpan.org/Ticket/Display.html?id=79845 And here is the patch. -Martin diff -rup DateTime-0.76.orig/Build.PL DateTime-0.76/Build.PL --- DateTime-0.76.orig/Build.PL 2012-07-01 23:55:52.0 +0200 +++ DateTime-0.76/Build.PL 2012-09-25 12:34:19.0 +0200 @@ -31,7 +31,6 @@

[rt.cpan.org #79845] [PATCH] sub-second precision and rounding

2012-09-25 Thread Martin Becker via RT
URL: https://rt.cpan.org/Ticket/Display.html?id=79845 Maintainers of DateTime, DateTime goes to some lengths to be consistent when doing mathematics. This is very helpful. At one point, however, I see it breaking a pattern for no good reason. The pattern I am referring to is that dates and