# IRuntimePlatform

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/platform/trait-iruntimeplatform/

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

```rust
trait IRuntimePlatform: 'static
```

Describes the platform the application runs on.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/i_runtime_platform.rs#L2)

## Members

- [`get_runtime_info`](#function-get_runtime_info)
- [`get_utc_now`](#function-get_utc_now)

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

### get_runtime_info

```rust
fn get_runtime_info(self: &Self) -> RuntimePlatformInfo
```

Information about the platform the application runs on.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/i_runtime_platform.rs#L4)

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

### get_utc_now

```rust
fn get_utc_now(self: &Self) -> std::time::SystemTime
```

The current instant, read by
`system_time_now` and
`DateTime::utc_now`. The
default is for a platform without a wall clock: it reports the Unix
epoch, 1970-01-01T00:00:00 UTC.

Since 0.5 the instant is a `SystemTime`,
where it was a `DateTime` of kind UTC: an implementation returns
`SystemTime::try_from(date_time)` of the value it returned (or the
system time it read), and a caller that needs the calendar value
converts with `DateTime::try_from`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/i_runtime_platform.rs#L23)

## Trait implementations

- [`IRuntimePlatform`](/docs/0.5.0/api/ferroui-base/platform/trait-iruntimeplatform/)

## Availability

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