# LocalUtcOffsetProvider

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/utilities/type_alias-localutcoffsetprovider/

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

```rust
type LocalUtcOffsetProvider = std::rc::Rc<dyn Fn(std::time::SystemTime) -> crate::animation::SignedDuration>
```

Gives the offset of local time from UTC at an instant.

Since 0.5 the provider takes a `SystemTime`, where it took a `DateTime`
of kind UTC: a provider that works on dates converts the instant with
`DateTime::try_from`.

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

## Availability

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