quantlib.time.date.Date

class Date(*args)

Bases: object

Date class

It provides methods to inspect dates as well as methods and operators which implement a limited date algebra (increasing and decreasing dates, and calculating their difference).

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

from_datetime(cls, dt)

Returns a QuantLib Date object from a Python datetime.date

Attributes

day

day_of_year

fraction_of_day

fraction_of_second

hours

microseconds

milliseconds

minutes

month

seconds

serial

weekday

year

classmethod from_datetime(cls, dt)

Returns a QuantLib Date object from a Python datetime.date