Am I missing something? On my computer, the above statement returns Monday, January 1, 0001 when rendered with .ToString(). I downloaded from NuGet and my version lists as 2.4.7.0 . According to the way I read the documentation at https://nodatime.org/2.2.x/api/NodaTime.LocalDate.html, I think it should throw ArgumentOutOfRangeException?Thanks!!
--
---
You received this message because you are subscribed to the Google Groups "Noda Time" group.
To unsubscribe from this group and stop receiving emails from it, send an email to noda-time+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/noda-time/7bbcc1cd-61b9-43d8-bfbb-0757f7790bcb%40googlegroups.com.
I can't reproduce this. Here's an example which works as expected, throwing an exception:using NodaTime;
using System;
class Program
{
static void Main(string[] args)
{
var date = new LocalDate(2020, 2, 30);
Console.WriteLine(date);
}
}Please could you try that on your system? Please file an issue at https://github.com/nodatime/nodatime/issues with the result - or if that throws as expected but you have a different minimal example that misbehaves, please post that (in the issue) instead.Jon
On Wed, 8 Jan 2020 at 22:42, Jon Skeet <sk...@pobox.com> wrote:
Yup, that should throw an exception. Will check it in the morning (UK time).
On Wed, 8 Jan 2020, 22:03 Joe Moore, <joe.mo...@gmail.com> wrote:
Am I missing something? On my computer, the above statement returns Monday, January 1, 0001 when rendered with .ToString(). I downloaded from NuGet and my version lists as 2.4.7.0 . According to the way I read the documentation at https://nodatime.org/2.2.x/api/NodaTime.LocalDate.html, I think it should throw ArgumentOutOfRangeException?--Thanks!!
---
You received this message because you are subscribed to the Google Groups "Noda Time" group.
To unsubscribe from this group and stop receiving emails from it, send an email to noda...@googlegroups.com.