import std.datetime.date : DateTime; auto dt = DateTime(1982, 4, 1, 20, 59, 22); Timestamp ts = dt; assert(dt.toISOExtString ~ "-00:00" == ts.toString); assert(dt == cast(DateTime) ts);
See Implementation