devela

Module phys

Source
Expand description

Physical units and measurements.
phys::{time}

Extends: std::{time}


Modules§

  • Time and calendar types and operations.

Structs§

  • core A span of time, with u64 seconds and u32 nanoseconds.
  • 🚩 core Error returned from converting floating-point seconds into a Duration.
  • std A measurement of a monotonically nondecreasing clock.
  • std A measurement of the system clock.
  • 🚩 An error returned from the duration_since and elapsed methods on SystemTime.
  • A full time split from years to nanoseconds.
  • Timecode splitting and formatting.
  • 64-bit Unix time, supporting negative values.
  • 32-bit Unix time, supporting only non-negative values.

Enums§

Constants§

Functions§

  • Returns true if the provided year is a leap year.

Type Aliases§