import core.time : hnsecs, minutes; import std.datetime.date : DateTime; import std.datetime.timezone : SimpleTimeZone; import std.datetime.systime : SysTime; auto dt = DateTime(1982, 4, 1, 20, 59, 22); auto tz = new immutable SimpleTimeZone(-330.minutes); auto st = SysTime(dt, 1234567.hnsecs, tz); Timestamp ts = st; assert(st.toISOExtString == ts.toString); assert(st == cast(SysTime) ts);