pub trait DatetimeMethods: AsDatetime {
Show 13 methods fn year(&self) -> Int32Chunked { ... } fn iso_year(&self) -> Int32Chunked { ... } fn quarter(&self) -> UInt32Chunked { ... } fn month(&self) -> UInt32Chunked { ... } fn weekday(&self) -> UInt32Chunked { ... } fn week(&self) -> UInt32Chunked { ... } fn day(&self) -> UInt32Chunked { ... } fn hour(&self) -> UInt32Chunked { ... } fn minute(&self) -> UInt32Chunked { ... } fn second(&self) -> UInt32Chunked { ... } fn nanosecond(&self) -> UInt32Chunked { ... } fn ordinal(&self) -> UInt32Chunked { ... } fn parse_from_str_slice(
        name: &str,
        v: &[&str],
        fmt: &str,
        tu: TimeUnit
    ) -> DatetimeChunked { ... }
}
Available on crate feature dtype-datetime only.

Provided Methods§

Extract month from underlying NaiveDateTime representation. Returns the year number in the calendar date.

Extract quarter from underlying NaiveDateTime representation. Quarters range from 1 to 4.

Extract month from underlying NaiveDateTime representation. Returns the month number starting from 1.

The return value ranges from 1 to 12.

Extract ISO weekday from underlying NaiveDateTime representation. Returns the weekday number where monday = 1 and sunday = 7

Returns the ISO week number starting from 1. The return value ranges from 1 to 53. (The last week of year differs by years.)

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.)

Extract hour from underlying NaiveDateTime representation. Returns the hour number from 0 to 23.

Extract minute from underlying NaiveDateTime representation. Returns the minute number from 0 to 59.

Extract second from underlying NaiveDateTime representation. Returns the second number from 0 to 59.

Extract second from underlying NaiveDateTime representation. 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.

Returns the day of year starting from 1.

The return value ranges from 1 to 366. (The last day of year differs by years.)

Implementations on Foreign Types§

Implementors§