Media Server 25.4
Media Server Help

# 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 2025 Open Text
Version 25.4 | Last updated October 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Media Server 25.4

Topic Title: Macros: Time Formats