class craftutils.observation.filters.date

date(year, month, day) –> date object

Public members

__repr__()

Return repr(self).

__hash__()

Return hash(self).

__str__()

Return str(self).

__getattribute__(name, /)

Return getattr(self, name).

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.

__add__(value, /)

Return self+value.

__radd__(value, /)

Return value+self.

__sub__(value, /)

Return self-value.

__rsub__(value, /)

Return value-self.

date(**kwargs)

Create and return a new object. See help(type) for accurate signature.

fromtimestamp()

Create a date from a POSIX timestamp.

fromordinal()

int -> date corresponding to a proleptic Gregorian ordinal.

fromisoformat()

str -> Construct a date from the output of date.isoformat()

fromisocalendar()

int, int, int -> Construct a date from the ISO year, week number and weekday.

today()

Current date or datetime: same as self.__class__.fromtimestamp(time.time()).

ctime()

Return ctime() style string.

strftime()

format -> strftime() style string.

__format__()

Formats self with strftime.

timetuple()

Return time tuple, compatible with time.localtime().

isocalendar()

Return a 3-tuple containing ISO year, week number, and weekday.

isoformat()

Return string in ISO 8601 format, YYYY-MM-DD.

isoweekday()

Return the day of the week represented by the date. Monday == 1 … Sunday == 7

toordinal()

Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.

weekday()

Return the day of the week represented by the date. Monday == 0 … Sunday == 6

replace()

Return date with new specified fields.

year
month
day
min = datetime.date(1, 1, 1)
max = datetime.date(9999, 12, 31)
resolution = datetime.timedelta(days=1)