# LocalizedNaiveDateTime

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-protranslate-core/struct-localizednaivedatetime/

**struct** · [`ferroui-protranslate-core`](/docs/0.5.0/api/ferroui-protranslate-core/) · v0.5.0

```rust
struct LocalizedNaiveDateTime
```

A wall-clock date/time with no inferred machine time zone. `new` preserves an
unspecified value; `utc` explicitly identifies the value as UTC.

Round-trip `O` and custom `K` retain that distinction. `z` and universal `U`
require an explicit UTC or offset value instead of assuming a host time zone.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/datetime.rs#L442)

## Members

- [`new`](#function-new)
- [`utc`](#function-utc)
- [`value`](#function-value)
- [`is_utc`](#function-is_utc)
- [`format`](#function-format)

<a id="function-new"></a>

### new

```rust
fn new(value: PrimitiveDateTime) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/datetime.rs#L447)

<a id="function-utc"></a>

### utc

```rust
fn utc(value: PrimitiveDateTime) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/datetime.rs#L450)

<a id="function-value"></a>

### value

```rust
fn value(self: Self) -> PrimitiveDateTime
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/datetime.rs#L453)

<a id="function-is_utc"></a>

### is_utc

```rust
fn is_utc(self: Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/datetime.rs#L456)

<a id="function-format"></a>

### format

```rust
fn format(self: &Self, format: &str, culture: &Culture) -> Result<String, TranslationError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/ProTranslate/FerroUI.ProTranslate.Core/datetime.rs#L459)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Debug`
- `Clone`
- `Copy`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- [`LocalizedFormat`](/docs/0.5.0/api/ferroui-protranslate-core/trait-localizedformat/)
- `From<PlainDateTime>`
- `From<LocalizedNaiveDateTime>`

## Availability

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