pub trait TemporalMethods: AsSeries {
Show 18 methods
// Provided methods
fn hour(&self) -> PolarsResult<Int8Chunked> { ... }
fn minute(&self) -> PolarsResult<Int8Chunked> { ... }
fn second(&self) -> PolarsResult<Int8Chunked> { ... }
fn nanosecond(&self) -> PolarsResult<Int32Chunked> { ... }
fn day(&self) -> PolarsResult<Int8Chunked> { ... }
fn weekday(&self) -> PolarsResult<Int8Chunked> { ... }
fn week(&self) -> PolarsResult<Int8Chunked> { ... }
fn ordinal_day(&self) -> PolarsResult<Int16Chunked> { ... }
fn millennium(&self) -> PolarsResult<Int32Chunked> { ... }
fn century(&self) -> PolarsResult<Int32Chunked> { ... }
fn year(&self) -> PolarsResult<Int32Chunked> { ... }
fn iso_year(&self) -> PolarsResult<Int32Chunked> { ... }
fn ordinal_year(&self) -> PolarsResult<Int32Chunked> { ... }
fn is_leap_year(&self) -> PolarsResult<BooleanChunked> { ... }
fn quarter(&self) -> PolarsResult<Int8Chunked> { ... }
fn month(&self) -> PolarsResult<Int8Chunked> { ... }
fn to_string(&self, format: &str) -> PolarsResult<Series> { ... }
fn strftime(&self, format: &str) -> PolarsResult<Series> { ... }
}
Provided Methods§
Sourcefn hour(&self) -> PolarsResult<Int8Chunked>
fn hour(&self) -> PolarsResult<Int8Chunked>
Extract hour from underlying NaiveDateTime representation. Returns the hour number from 0 to 23.
Sourcefn minute(&self) -> PolarsResult<Int8Chunked>
fn minute(&self) -> PolarsResult<Int8Chunked>
Extract minute from underlying NaiveDateTime representation. Returns the minute number from 0 to 59.
Sourcefn second(&self) -> PolarsResult<Int8Chunked>
fn second(&self) -> PolarsResult<Int8Chunked>
Extract second from underlying NaiveDateTime representation. Returns the second number from 0 to 59.
Sourcefn nanosecond(&self) -> PolarsResult<Int32Chunked>
fn nanosecond(&self) -> PolarsResult<Int32Chunked>
Returns the number of nanoseconds since the whole non-leap second. The range from 1,000,000,000 to 1,999,999,999 represents the leap second.
Sourcefn day(&self) -> PolarsResult<Int8Chunked>
fn day(&self) -> PolarsResult<Int8Chunked>
Extract day from underlying NaiveDateTime representation. Returns the day of month starting from 1.
The return value ranges from 1 to 31. (The last day of month differs by months.)
Sourcefn weekday(&self) -> PolarsResult<Int8Chunked>
fn weekday(&self) -> PolarsResult<Int8Chunked>
Returns the ISO weekday number where monday = 1 and sunday = 7
Sourcefn week(&self) -> PolarsResult<Int8Chunked>
fn week(&self) -> PolarsResult<Int8Chunked>
Returns the ISO week number starting from 1. The return value ranges from 1 to 53. (The last week of year differs by years.)
Sourcefn ordinal_day(&self) -> PolarsResult<Int16Chunked>
fn ordinal_day(&self) -> PolarsResult<Int16Chunked>
Returns the day of year starting from 1.
The return value ranges from 1 to 366. (The last day of year differs by years.)
Sourcefn millennium(&self) -> PolarsResult<Int32Chunked>
fn millennium(&self) -> PolarsResult<Int32Chunked>
Calculate the millennium from the underlying NaiveDateTime representation.
Sourcefn century(&self) -> PolarsResult<Int32Chunked>
fn century(&self) -> PolarsResult<Int32Chunked>
Calculate the millennium from the underlying NaiveDateTime representation.
Sourcefn year(&self) -> PolarsResult<Int32Chunked>
fn year(&self) -> PolarsResult<Int32Chunked>
Extract year from underlying NaiveDateTime representation. Returns the year number in the calendar date.
fn iso_year(&self) -> PolarsResult<Int32Chunked>
Sourcefn ordinal_year(&self) -> PolarsResult<Int32Chunked>
fn ordinal_year(&self) -> PolarsResult<Int32Chunked>
Extract ordinal year from underlying NaiveDateTime representation. Returns the year number in the calendar date.
Sourcefn is_leap_year(&self) -> PolarsResult<BooleanChunked>
fn is_leap_year(&self) -> PolarsResult<BooleanChunked>
Extract year from underlying NaiveDateTime representation. Returns whether the year is a leap year.
Sourcefn quarter(&self) -> PolarsResult<Int8Chunked>
fn quarter(&self) -> PolarsResult<Int8Chunked>
Extract quarter from underlying NaiveDateTime representation. Quarters range from 1 to 4.
Sourcefn month(&self) -> PolarsResult<Int8Chunked>
fn month(&self) -> PolarsResult<Int8Chunked>
Extract month from underlying NaiveDateTime representation. Returns the month number starting from 1.
The return value ranges from 1 to 12.
Sourcefn to_string(&self, format: &str) -> PolarsResult<Series>
fn to_string(&self, format: &str) -> PolarsResult<Series>
Convert Time into String with the given format. See chrono strftime/strptime.
Sourcefn strftime(&self, format: &str) -> PolarsResult<Series>
fn strftime(&self, format: &str) -> PolarsResult<Series>
Convert from Time into String with the given format. See chrono strftime/strptime.
Alias for to_string
.