module pixeltable.functions.date
Pixeltable UDFs forDateType.
Usage example:
udf add_days()
Signature
n days to the date.
Equivalent to date + timedelta(days=n).
udf day()
Signature
date.day.
udf isocalendar()
Signature
'year', 'week', and 'weekday'.
Equivalent to
date.isocalendar().
udf isoformat()
Signature
date.isoformat().
Parameters:
sep(pxt.String): Separator between date and time.timespec(pxt.String): The number of additional terms in the output. See thedate.isoformat()documentation for more details.
udf isoweekday()
Signature
date.isoweekday().
udf make_date()
Signature
datetime().
udf month()
Signature
date.month.
udf strftime()
Signature
date.strftime().
Parameters:
format(pxt.String): The format string to control the output. For a complete list of formatting directives, seestrftime()andstrptime()Behavior.
udf toordinal()
Signature
date.toordinal().
udf weekday()
Signature
date.weekday().
udf year()
Signature
MINYEAR and
MAXYEAR as defined by the Python datetime
library).
Equivalent to date.year.