module pixeltable.functions.timestamp
Pixeltable UDFs forTimestampType.
Usage example:
udf astimezone()
Signature
tz(pxt.String): The time zone to convert to. Must be a valid time zone name from the IANA Time Zone Database.
udf day()
Signature
datetime.day.
udf hour()
Signature
datetime.hour.
udf isocalendar()
Signature
'year', 'week', and 'weekday'.
Equivalent to
datetime.isocalendar().
udf isoformat()
Signature
datetime.isoformat().
Parameters:
sep(pxt.String): Separator between date and time.timespec(pxt.String): The number of additional terms in the output. See thedatetime.isoformat()documentation for more details.
udf isoweekday()
Signature
datetime.isoweekday().
udf make_timestamp()
Signature
datetime().
udf microsecond()
Signature
datetime.microsecond.
udf minute()
Signature
datetime.minute.
udf month()
Signature
datetime.month.
udf posix_timestamp()
Signature
datetime.timestamp().
udf replace()
Signature
datetime.replace().
udf second()
Signature
datetime.second.
udf strftime()
Signature
datetime.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
datetime.toordinal().
udf weekday()
Signature
datetime.weekday().
udf year()
Signature
MINYEAR and
MAXYEAR inclusive.
Equivalent to datetime.year.