quantlib.time.date

Functions

days(Period p)

Converts the period into days as a float.

end_of_month(Date date)

Last day of the month to which the given date belongs.

is_end_of_month(Date date)

Whether a date is the last day of its month.

is_leap(int year)

Whether the given year is a leap one.

local_date_time()

local date time, based on the time zone settings of the computer

maxdate()

Latest allowed date.

mindate()

Earliest date allowed.

months(Period p)

Converts the period intho months as a float.

next_weekday(Date date, int weekday)

Returns the next given weekday following or equal to the given date

nth_weekday(int size, int weekday, ...)

Return the n-th given weekday in the given month and year

pydate_from_qldate(Date qdate)

Converts a PyQL Date to a datetime.date object.

qldate_from_pydate(pydate)

Converts a datetime.date to a PyQL date.

today()

Today's date.

universal_date_time()

UTC date time

weeks(Period p)

Converts the period into weeks as a float.

years(Period p)

Converts the period into years as a float.

Classes

Date(*args)

Date class

Month(value[, names, module, qualname, ...])

Period(*args)

Class providing a Period (length + time unit) class and implements a limited algebra.

TimeUnit(value[, names, module, qualname, ...])

Weekday(value[, names, module, qualname, ...])