Documentation

Trivial Penultimate Functions

Day-specific Penultimate Functions

Main.PenultimateDays.penultimatedayofmonthMethod
penultimatedayofmonth(dt::TimeType, d::Int) -> TimeType

Adjusts dt to the penultimate (second-to-last) day of its month, given some d, the day of the week as an Int, with 1 = Monday, 2 = Tuesday, &c...

For example, the penultimatedayofmonth(dt, 6) will find the penultimate Saturday of the month. Dates also exports integer aliases MondaySunday, so you can write penultimatedayofmonth(dt, Saturday).

See also: Dates.dayofweek, lastdayofmonth

source
Main.PenultimateDays.penultimatedayofquarterMethod
penultimatedayofquarter(dt::TimeType, d::Int) -> TimeType

Adjusts dt to the penultimate (second-to-last) day of its quarter, given some d, the day of the week as an Int, with 1 = Monday, 2 = Tuesday, &c...

For example, the penultimatedayofquarter(dt, 6) will find the penultimate Saturday of the quarter. Dates also exports integer aliases MondaySunday, so you can write penultimatedayofquarter(dt, Saturday).

See also: Dates.dayofweek, lastdayofquarter

source
Main.PenultimateDays.penultimatedayofyearMethod
penultimatedayofyear(dt::TimeType, d::Int) -> TimeType

Adjusts dt to the penultimate (second-to-last) day of its year, given some d, the day of the week as an Int, with 1 = Monday, 2 = Tuesday, &c...

For example, the penultimatedayofyear(dt, 6) will find the penultimate Saturday of the year. Dates also exports integer aliases MondaySunday, so you can write penultimatedayofyear(dt, Saturday).

See also: Dates.dayofweek, lastdayofyear

source

Dates (Standard Library) Extended

Dates.firstdayofweekFunction
firstdayofweek(dt::TimeType, d::Int) -> TimeType

Adjusts dt to the first d-day of its week, given some d, the day of the week as an Int, with 1 = Monday, 2 = Tuesday, &c...

For example, the firstdayofweek(dt, 6) will find the first Saturday of the week. Dates also exports integer aliases MondaySunday, so you can write firstdayofweek(dt, Saturday).

See also: Dates.dayofweek

source
Dates.lastdayofweekFunction
lastdayofweek(dt::TimeType, d::Int) -> TimeType

Adjusts dt to the last d-day of its week, given some d, the day of the week as an Int, with 1 = Monday, 2 = Tuesday, &c...

For example, the lastdayofweek(dt, 6) will find the last Saturday of the week. Dates also exports integer aliases MondaySunday, so you can write lastdayofweek(dt, Saturday).

See also: Dates.dayofweek

source
Dates.firstdayofmonthFunction
firstdayofmonth(dt::TimeType, d::Int) -> TimeType

Adjusts dt to the first d-day of its month, given some d, the day of the week as an Int, with 1 = Monday, 2 = Tuesday, &c...

For example, the firstdayofmonth(dt, 6) will find the first Saturday of the month. Dates also exports integer aliases MondaySunday, so you can write firstdayofmonth(dt, Saturday).

See also: Dates.dayofweek

source
Dates.lastdayofmonthFunction
lastdayofmonth(dt::TimeType, d::Int) -> TimeType

Adjusts dt to the last d-day of its month, given some d, the day of the week as an Int, with 1 = Monday, 2 = Tuesday, &c...

For example, the lastdayofmonth(dt, 6) will find the last Saturday of the month. Dates also exports integer aliases MondaySunday, so you can write lastdayofmonth(dt, Saturday).

See also: Dates.dayofweek

source
Dates.firstdayofquarterFunction
firstdayofquarter(dt::TimeType, d::Int) -> TimeType

Adjusts dt to the first d-day of its quarter, given some d, the day of the week as an Int, with 1 = Monday, 2 = Tuesday, &c...

For example, the firstdayofquarter(dt, 6) will find the first Saturday of the quarter. Dates also exports integer aliases MondaySunday, so you can write firstdayofquarter(dt, Saturday).

See also: Dates.dayofweek

source
Dates.lastdayofquarterFunction
lastdayofquarter(dt::TimeType, d::Int) -> TimeType

Adjusts dt to the last d-day of its quarter, given some d, the day of the week as an Int, with 1 = Monday, 2 = Tuesday, &c...

For example, the lastdayofquarter(dt, 6) will find the last Saturday of the quarter. Dates also exports integer aliases MondaySunday, so you can write lastdayofquarter(dt, Saturday).

See also: Dates.dayofweek

source
Dates.firstdayofyearFunction
firstdayofyear(dt::TimeType, d::Int) -> TimeType

Adjusts dt to the first d-day of its year, given some d, the day of the week as an Int, with 1 = Monday, 2 = Tuesday, &c...

For example, the firstdayofyear(dt, 6) will find the first Saturday of the year. Dates also exports integer aliases MondaySunday, so you can write firstdayofyear(dt, Saturday).

See also: Dates.dayofweek

source
Dates.lastdayofyearFunction
lastdayofyear(dt::TimeType, d::Int) -> TimeType

Adjusts dt to the last d-day of its year, given some d, the day of the week as an Int, with 1 = Monday, 2 = Tuesday, &c...

For example, the lastdayofyear(dt, 6) will find the last Saturday of the year. Dates also exports integer aliases MondaySunday, so you can write lastdayofyear(dt, Saturday).

See also: Dates.dayofweek

source

Index