Exemple #1
0
 public void Test32_DateTime()
 {
     Assert.AreEqual(DateTime.Parse("2020/7/31 13:45:56"), JacInterpreter.ParseDateTime(@"datetime('2020/7/31 13:45:56')"));
     Assert.AreEqual(DateTime.Parse("2020/7/31 13:45:56"), JacInterpreter.ParseDateTime(@"datetime ( '2020/7/31 13:45:56' )"));
     Assert.AreEqual(DateTime.Parse("2020/7/31 13:45:56"), JacInterpreter.ParseDateTime(@"'2020/7/31 13:45:56'"));
     Assert.AreEqual(DateTime.Parse("2020/7/31 13:45:56"), JacInterpreter.ParseDateTime(@"2020/7/31 13:45:56"));
     Assert.AreEqual(DateTime.Parse("2020/7/31 13:45:56.321"), JacInterpreter.ParseDateTime(@"2020/7/31 13:45:56.321"));
     Assert.AreNotEqual(DateTime.Parse("2020/7/31 13:45:56.322"), JacInterpreter.ParseDateTime(@"2020/7/31 13:45:56.321"));
 }