Gets the current time.
Syntax
Parameters
type
- How to return the time.0
(default) - Return the time in whole seconds, as an integer Number.1
- Return the time with microseconds, as a floating-point Number.2
- Return the time with microseconds, as a String. The String will consist of the microseconds, followed by a space, followed by the seconds.
Result
Returns the current time as a Unix timestamp.
Getting the time as a String is generally far more precise than getting it as a floating-point Number, as more decimal places can be provided.