Example #1
0
        public virtual void ParseDateTimeStandardLocalDateTimeFormat()
        {
            LocalDateTime expected = LocalDateTime.Parse("2017-11-02T15:30");

            SUTime.Time actual = SUTime.ParseDateTime("2017-11-02T15:30", true);
            NUnit.Framework.Assert.AreEqual(expected.ToInstant(ZoneId.SystemDefault().GetRules().GetOffset(expected.ToInstant(ZoneOffset.Utc))).ToEpochMilli(), actual.GetJodaTimeInstant().GetMillis());
        }