Reference · Tools · tools.rs

set_utc_offset Function

The device's offset from UTC in seconds, so {date} is the local day. The apps call it at launch and when the time zone changes.

func setUtcOffset(seconds: Int32)

Parameters

NameTypeSwift / C#
secondsi32seconds

Returns

Nothing.

Errors

Does not throw.

Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.