# system_time_now

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/utilities/function-system_time_now/

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

```rust
fn system_time_now() -> std::time::SystemTime
```

The current instant: the time of the pinned source of this thread
(`DateTime::set_utc_now_provider`) when there is one, else the wall
clock of the registered [`IRuntimePlatform`](/docs/0.5.0/api/ferroui-base/platform/trait-iruntimeplatform/), else the one of the
standard runtime platform.

Code that can run in the browser reads "now" here rather than with
`SystemTime::now()`, which `wasm32-unknown-unknown` does not have: the
runtime platform of the browser reads `Date.now()`.

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

## Availability

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