Open topic with navigation

# Macros: Time Formats

Time Format | Description | Example
--- | --- | ---
`iso8601` | The full timestamp in ISO 8601 format. | `2015-11-03T15:30:47.931493Z`
`date` | The date (YYYY-MM-DD). | `2015-11-03`
`time` | The time. | `15:30:47.931493`
`timestamp` | The full timestamp in the format `YYYYMMDD-HHNNSS` | `20151103-153047`
`year` | The year, as four digits. | `2015`
`month` | The month, as two digits. | `11`
`day` | The day, as two digits. | `03`
`hour` | The hour, as two digits in 24-hour format. | `15`
`minute` | The minute, as two digits. | `30`
`second` | The second, as two digits. | `47`
`second_with_fractional` | The second and fraction of a second. | `47.931493`

All values are in UTC time. If you prefer to use local time (according to the settings on the Media Server host), you can add the prefix `local.` to any of the format strings in the preceding table. For example:

Example Macro | Description | Example Value
--- | --- | ---
`%currentTime.iso8601%` | Current UTC time | `2015-11-03T15:30:47.931493Z`
`%currentTime.local.iso8601%` | Current local time | `2015-11-03T16:30:47.931493+01:00`
`%currentTime.local.hour%` | Current local time | `16`

If macros are used in file paths, illegal characters such as colons are replaced with underscores.

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm