The OpenD Programming Language

opCast

  1. alias opCast(T : Timestamp) = timestamp
  2. alias opCast(T : YearQuarter) = yearQuarter
    import mir.date;
    @safe pure @nogc
    alias opCast(T : YearQuarter) = yearQuarter

Examples

import mir.timestamp;
auto timestamp = cast(Timestamp) YearMonthDay(2020, Month.may, 12);

Meta