Date.this

  1. this(int year, int month, int day)
    struct Date
    @safe pure
    this
    (
    int year
    ,
    int month
    ,
    int day
    )
  2. this(int day)

Parameters

year int

Year of the Gregorian Calendar. Positive values are A.D. Non-positive values are B.C. with year 0 being the year prior to 1 A.D.

month int

Month of the year (January is 1).

day int

Day of the month.

Throws

std.datetime.date.DateTimeException if the resulting Date would not be valid.

Suggestion Box / Bug Report