bibpy.date module

Special date class for handling biblatex date ranges.

class bibpy.date.DateRange(start, end, open)[source]

Bases: object

Wrapper class around biblatex date ranges.

classmethod empty()[source]

Create an empty DateRange.

end

Return the end date of the range, None otherwise.

classmethod fromstring(string)[source]

Parse a date string then return a new DateRange object.

open

Return True if this date range is open-ended.

Biblatex open-ended dates are formatted like this: ‘1988-01-12/’

start

Return the start date of the range, None otherwise.

class bibpy.date.PartialDate(year=None, month=None, day=None)[source]

Bases: object

Light-weight class for representing partial dates.