Skip to main content

 

Documentation & User Guides | FotoWare

Reference of Legacy Date and Time Variables

 

This article describes legacy dynamic tags which exist for backward compatibility. It is not recommended to use these tags any more, but they will remain available in future versions of FotoWeb as well. For new configurations, please use the tags listed in Reference of Date/Time Variables instead. If your configuration already uses any legacy tags, then the "Replace With" column in the table below can help you replace these tags with the new, recommended versions.

These tags are available in metadata macros in actions only. They cannot be used in search expressions.

For general information about date/time tags, please see Reference of Date/Time Variables and Dynamic Variables.

Unless specified otherwise, all of these tags expand to local time. Some tags expand to universal time (UTC).

Tag

Format

Remarks

Example

Replace With

{{date}}

{{date.date}}

YYYYMMDD Expands to the current date in compact format 20160517 {{now.date}}
{{date.utcdate}} YYYMMDD Expands to the current date in universal time (UTC) in compact format 20160517 {{utcnow.date}}
{{isodate}} YYYY-MM-DDThh:mm:ss

Expands to the current date and time in ISO8601 format

2016-05-17T12:45:30 {{now.isodatetime}}
{{date.year}} YYYY Expands to the current year. 2016 {{now.year}}
{{date.month}} MM Expands to the number of the current month with at least 2 digits 05 {{now.month}}
{{date.day}} DD Expands to the current day of the month with at least 2 digits 07 {{now.day}}
{{time}}

hh:mm:ss or

hhmmss

Expands to the current time of the day.

If it is used to generate a file name, then the colons are omitted.

Otherwise (e.g., if used in a metadata macro), the colons are included.

12:45:30

124530

{{now.time}}

{{time.hour}}

{{time.hour:FORMAT}}

hh

Expands to the current hour of the day in either 12-hour or 24-hour format with at least 2 digits.

See the description of the {{now.hour}} tag in Reference of Date/Time Tags for more information.

12

{{now.hour}}

{{now.hour:FORMAT}}

{{time.min}}

{{time.minute}}

mm Expands to the current minute of the hour with at least 2 digits 05 {{now.minute}}

{{time.sec}}

{{time.second}}

ss Expands to the current second of the minute with at least 2 digits 02 {{now.second}}