Struct polars_time::Duration
source · [−]pub struct Duration { /* private fields */ }Implementations
1ns // 1 nanosecond 1us // 1 microsecond 1ms // 1 millisecond 1s // 1 second 1m // 1 minute 1h // 1 hour 1d // 1 day 1w // 1 week 1mo // 1 calendar month 1y // 1 calendar year 1i // 1 index value (only for {Int32, Int64} dtypes
3d12h4m25s // 3 days, 12 hours, 4 minutes, and 25 seconds
Panics if given str is incorrect
Estimated duration of the window duration. Not a very good one if months != 0.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Duration
impl UnwindSafe for Duration
Blanket Implementations
Mutably borrows from an owned value. Read more