Articles in this section

timestamp helper

The timestamp helper generates the current date/time string in a specified format and timezone. If you omit the format, the helper uses an ISO8601 default. If you omit the timezone, it defaults to UTC rather than using any profile-based settings.

Usage

{{timestamp format timezone}}
  • format (optional): The date/time format pattern (e.g., "YYYY-MM-DD HH:mm:ss" or "HH:MM:SS"). Defaults to ISO8601 if not specified.

  • timezone (optional): A valid timezone identifier (e.g., "America/Los_Angeles"). Defaults to UTC if not specified.

Examples

  1. Display local time in Los Angeles 

    {{timestamp "HH:MM:SS" "America/Los_Angeles"}}

    Example output: 08:09:09 (local time with offset).

  2. Use a custom format in UTC 

    {{timestamp "YYYY-MM-DD HH:mm:ss"}}

    Generates: 2025-04-20 17:38:20 in UTC.

Tip

  • Always specify the timezone parameter to avoid confusion with default timezones.

  • Check which date/time format tokens are supported in your Celigo environment (typically ISO-style or standard format strings).

  • If you need to manipulate dates further (e.g., add days/hours), consider other date/time helpers that might be available, or handle the logic before calling timestamp.