Summary
Gets current time by timezone
Description
Gets the current time with an optional offset, timezone, and format string. If a timezone isn't provided the system's local time will be used.
Route
No Northbound API Available
Roles
Parameters
DetailsExampleSchema
Name | Type | Required | Description |
---|---|---|---|
timezone | string | no | Timezone in IANA format to get current time from. |
offsetDuration | object | no | Amount of time to offset the current time by. See https://momentjs.com/docs/#/manipulating/add/ object literal example. |
format | string | no | Moment.js date-time format string. See https://momentjs.com/docs/#/displaying/format/ |
Return
DetailsExampleSchema
Name | Type | Description |
---|---|---|
time | object | An ISO string representation of the current time |