import mir.timestamp; auto yq = YearQuarter(2020, Quarter.q2); auto timestamp = cast(Timestamp) yq;
See Implementation