# SystemTimeRangeError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/utilities/enum-systemtimerangeerror/

**enum** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
enum SystemTimeRangeError
```

The error of a conversion between [`DateTime`](/docs/0.5.0/api/ferroui-base/utilities/struct-datetime/) or
`DateTimeOffset` and `SystemTime` whose
instant the target type cannot hold.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time.rs#L835)

## Members

- [`OutsideDateTimeRange`](#variant-outsidedatetimerange)
- [`OutsideSystemTimeRange`](#variant-outsidesystemtimerange)

<a id="variant-outsidedatetimerange"></a>

### OutsideDateTimeRange

```rust
OutsideDateTimeRange
```

The system time is outside of the years 1 to 9999 of `DateTime`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time.rs#L837)

<a id="variant-outsidesystemtimerange"></a>

### OutsideSystemTimeRange

```rust
OutsideSystemTimeRange
```

The platform's `SystemTime` cannot hold the instant (on
`wasm32-unknown-unknown`, an instant before 1970).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/date_time.rs#L840)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Display`
- [`Error`](/docs/0.5.0/api/ferroui-dynamic-data/kernel/struct-error/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
