Clock.fromDate

Convert Date fields to Time

Note that the conversion is limited by the underlying OS, and will not operate correctly with Time values beyond the domain. On Win32 the earliest representable date is 1601. On linux it is 1970. Both systems have limitations upon future dates also. Date is limited to millisecond accuracy at best.

  1. Time fromDate(const(DateTime) dt)
  2. Time fromDate(const(DateTime) dt)
    struct Clock
    version(Posix)
    static
    Time
    fromDate
    (
    ref const(DateTime) dt
    )

Meta