import std.datetime.date : TimeOfDay; auto dt = TimeOfDay(7, 14, 30); Timestamp ts = dt; assert(dt.toISOExtString ~ "Z" == ts.toString); assert(dt == cast(TimeOfDay) ts);
See Implementation