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

now

  • Dark
    Light
  • PDF

Article summary

Description

Type: DateTime

Returns the current local date and time, according to the host device.


Examples

// display the current date and time in the debugger
debug.log(tools.now);

Remarks

This is the current date and time of the device hosting your app instance, which is typically the local time of the user.

If you want the date / time measured in Universal time instead (across the entire globe), use tools.nowUtc.


What's Next