Removed deprecation errors, improved readability.

This commit is contained in:
Ferdinand Majerech 2014-07-19 03:51:52 +02:00
parent aae11e029c
commit 4faaf77950

View file

@ -212,11 +212,13 @@ Node[] constructStrUTF8()
Node[] constructTimestamp() Node[] constructTimestamp()
{ {
return [Node([pair("canonical", SysTime(DateTime(2001, 12, 15, 2, 59, 43), FracSec.from!"hnsecs"(1000000), UTC())), alias DT = DateTime;
pair("valid iso8601", SysTime(DateTime(2001, 12, 15, 2, 59, 43), FracSec.from!"hnsecs"(1000000), UTC())), alias ST = SysTime;
pair("space separated", SysTime(DateTime(2001, 12, 15, 2, 59, 43), FracSec.from!"hnsecs"(1000000), UTC())), return [Node([pair("canonical", ST(DT(2001, 12, 15, 2, 59, 43), FracSec.from!"hnsecs"(1000000), UTC())),
pair("no time zone (Z)", SysTime(DateTime(2001, 12, 15, 2, 59, 43), FracSec.from!"hnsecs"(1000000), UTC())), pair("valid iso8601", ST(DT(2001, 12, 15, 2, 59, 43), FracSec.from!"hnsecs"(1000000), UTC())),
pair("date (00:00:00Z)", SysTime(DateTime(2002, 12, 14), UTC()))])]; pair("space separated", ST(DT(2001, 12, 15, 2, 59, 43), FracSec.from!"hnsecs"(1000000), UTC())),
pair("no time zone (Z)", ST(DT(2001, 12, 15, 2, 59, 43), FracSec.from!"hnsecs"(1000000), UTC())),
pair("date (00:00:00Z)", ST(DT(2002, 12, 14), UTC()))])];
} }
Node[] constructValue() Node[] constructValue()
@ -273,12 +275,14 @@ Node[] singleDotFloatBug()
Node[] timestampBugs() Node[] timestampBugs()
{ {
return [Node([Node(SysTime(DateTime(2001, 12, 15, 3, 29, 43), FracSec.from!"hnsecs"(1000000), UTC())), alias DT = DateTime;
Node(SysTime(DateTime(2001, 12, 14, 16, 29, 43), FracSec.from!"hnsecs"(1000000), UTC())), alias ST = SysTime;
Node(SysTime(DateTime(2001, 12, 14, 21, 59, 43), FracSec.from!"hnsecs"(10100), UTC())), return [Node([Node(ST(DT(2001, 12, 15, 3, 29, 43), FracSec.from!"hnsecs"(1000000), UTC())),
Node(SysTime(DateTime(2001, 12, 14, 21, 59, 43), new immutable SimpleTimeZone(60))), Node(ST(DT(2001, 12, 14, 16, 29, 43), FracSec.from!"hnsecs"(1000000), UTC())),
Node(SysTime(DateTime(2001, 12, 14, 21, 59, 43), new immutable SimpleTimeZone(-90))), Node(ST(DT(2001, 12, 14, 21, 59, 43), FracSec.from!"hnsecs"(10100), UTC())),
Node(SysTime(DateTime(2005, 7, 8, 17, 35, 4), FracSec.from!"hnsecs"(5176000), UTC()))])]; Node(ST(DT(2001, 12, 14, 21, 59, 43), new immutable SimpleTimeZone(60.dur!"minutes"))),
Node(ST(DT(2001, 12, 14, 21, 59, 43), new immutable SimpleTimeZone(-90.dur!"minutes"))),
Node(ST(DT(2005, 7, 8, 17, 35, 4), FracSec.from!"hnsecs"(5176000), UTC()))])];
} }
Node[] utf16be() Node[] utf16be()