The OpenD Programming Language

Timestamp.opCast

Casts timestamp to a date-time type.

Supported types up to T.stringof equivalence:

  • Year
  • YearMonth
  • YearMonthDay
  • Date
  • date
  • TimeOfDay
  • DateTime
  • SysTime
  1. T opCast()
  2. T opCast()
    struct Timestamp
    const
    T
    opCast
    (
    T
    )
    ()
    if (
    T.stringof == "Year" ||
    T.stringof == "YearMonth"
    ||
    T.stringof == "YearMonthDay"
    ||
    T.stringof == "Date"
    ||
    T.stringof == "date"
    ||
    T.stringof == "TimeOfDay"
    ||
    T.stringof == "Duration"
    ||
    T.stringof == "DateTime"
    ||
    T.stringof == "SysTime"
    )

Meta