Skip to main content

ferroui_base/utilities/
date_time_kind.rs

1//! Whether a [`DateTime`](super::DateTime) is local time, UTC or neither
2//! (.NET `System.DateTimeKind`).
3
4/// The kind of time a [`DateTime`](super::DateTime) represents.
5#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
6#[repr(u8)]
7pub enum DateTimeKind {
8    /// Neither local time nor UTC is stated.
9    #[default]
10    Unspecified = 0,
11    /// Coordinated Universal Time.
12    Utc = 1,
13    /// Local time.
14    Local = 2,
15}