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