timeUtc
  • 30 Oct 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

timeUtc

  • Dark
    Light
  • PDF

Article summary

Description

Type: DateTime

Returns the current time in Coordinated Universal Time (UTC).


Examples

// display the current UTC time in the debugger
debug.log(tools.timeUtc);

Remarks

This is the current time in Coordinated Universal Time (UTC) format.

If you want the time measured in the user's local time instead, use tools.time.


What's Next