pub enum TimeZoneSpec {
Local,
Utc,
FixedOffsetSeconds(i32),
}Expand description
Timezone specification for date/time calculations Excel behavior: always uses local timezone This enum allows future extensions while maintaining Excel compatibility
Variants§
Local
Use the system’s local timezone (Excel default behavior)
Utc
Use UTC timezone
FixedOffsetSeconds(i32)
Use a fixed offset from UTC (seconds east of UTC).
This is the only timezone-like option permitted under deterministic mode.
Implementations§
Source§impl TimeZoneSpec
impl TimeZoneSpec
pub fn fixed_offset(&self) -> Option<FixedOffset>
pub fn validate_for_determinism(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for TimeZoneSpec
impl Clone for TimeZoneSpec
Source§fn clone(&self) -> TimeZoneSpec
fn clone(&self) -> TimeZoneSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeZoneSpec
impl Debug for TimeZoneSpec
Source§impl Default for TimeZoneSpec
impl Default for TimeZoneSpec
Source§fn default() -> TimeZoneSpec
fn default() -> TimeZoneSpec
Returns the “default value” for a type. Read more
Source§impl PartialEq for TimeZoneSpec
impl PartialEq for TimeZoneSpec
impl Eq for TimeZoneSpec
impl StructuralPartialEq for TimeZoneSpec
Auto Trait Implementations§
impl Freeze for TimeZoneSpec
impl RefUnwindSafe for TimeZoneSpec
impl Send for TimeZoneSpec
impl Sync for TimeZoneSpec
impl Unpin for TimeZoneSpec
impl UnsafeUnpin for TimeZoneSpec
impl UnwindSafe for TimeZoneSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more