Temporal#
The following methods are available under the expr.dt attribute.
Base offset from UTC. |
|
|
Cast the underlying data to another time unit. |
|
Replace time zone for an expression of type Datetime. |
|
Create a naive Datetime from an existing Date/Datetime expression and a Time. |
Extract date from date(time). |
|
Return datetime. |
|
Extract day from underlying Date representation. |
|
Extract the days from a Duration type. |
|
Additional offset currently in effect (typically due to daylight saving time). |
|
|
Get the time passed since the Unix EPOCH in the give time unit. |
Extract hour from underlying DateTime representation. |
|
Extract the hours from a Duration type. |
|
Determine whether the year of the underlying date is a leap year. |
|
Extract ISO year from underlying Date representation. |
|
Extract microseconds from underlying DateTime representation. |
|
Extract the microseconds from a Duration type. |
|
Extract milliseconds from underlying DateTime representation. |
|
Extract the milliseconds from a Duration type. |
|
Extract minutes from underlying DateTime representation. |
|
Extract the minutes from a Duration type. |
|
Extract month from underlying Date representation. |
|
Roll backward to the first day of the month. |
|
Roll forward to the last day of the month. |
|
Extract nanoseconds from underlying DateTime representation. |
|
Extract the nanoseconds from a Duration type. |
|
Offset this date by a relative time offset. |
|
Extract ordinal day from underlying Date representation. |
|
Extract quarter from underlying Date representation. |
|
|
Divide the date/datetime range into buckets. |
|
Extract seconds from underlying DateTime representation. |
Extract the seconds from a Duration type. |
|
|
Convert a Date/Time/Datetime column into a Utf8 column with the given format. |
Extract time. |
|
|
Return a timestamp in the given time unit. |
|
Convert a Date/Time/Datetime column into a Utf8 column with the given format. |
|
Divide the date/datetime range into buckets. |
Extract the week from the underlying Date representation. |
|
Extract the week day from the underlying Date representation. |
|
|
Set time unit of an expression of dtype Datetime or Duration. |
|
Convert to given time zone for an expression of type Datetime. |
Extract year from underlying Date representation. |