ProtoFlux:UTC Now

From Resonite Wiki
Revision as of 22:16, 22 March 2024 by TheAutopilot (talk | contribs) (TheAutopilot moved page ProtoFlux:Utc Now to ProtoFlux:UTC Now: Misspelled title: UTC is an abbreviation and should be upper case.)
Utc Now
*
Time

Returns the current time in UTC[1].

Each evaluation triggers an individual call to DateTime.UtcNow[2]. This means that within a single Impulse it can be evaluated with different values.

This can be used to measure the runtime of impulse based ProtoFlux to sub-millisecond precision.

Since UTC is independent of the local user's timezone it should return approximately the same value on every user.

Utc Now is still dependent on the local computer's clock. Differences between users in minutes are somewhat common and in case of incorrectly setup clocks they can reach hours easily. Use World Time Float or World Time Double for a more consistent time source.

Outputs

* (DateTime)

The current time in UTC

Examples