The OpenD Programming Language

YearQuarter.opCast

import mir.date;
struct YearQuarter
alias opCast(T : Timestamp) = timestamp

Examples

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

Meta