Timestamp Parser
The Timestamp Parser allows you to convert UNIX timestamps or date variables into human-readable formats. You can provide a UNIX timestamp or use placeholders for date variables.
Usage
To use the parser, insert the following syntax in your text:
{timestamp(format):variable}
- You can also reference this parser using the aliases: time, ts
Examples
- Converting a UNIX timestamp:
- Input:
{timestamp(shortTime):1735772400}
- Output:
00:00
- Using placeholders:
- Input:
{timestamp(relative):{member.joinedAt}}
- Output:
5 hours ago
Available Formats
Format | Description | Example |
---|---|---|
shortTime | Time in hours and minutes | 10:15 |
longTime | Time with seconds | 10:15:00 |
shortDate | Date in MM/DD/YYYY format | 01/02/2025 |
longDate | Date in DD Month YYYY format | 02 January 2025 |
dateWithTime | Date with time in short format | 02 January 2025 10:15 |
fullDateTime | Full date and time, with weekday | Thursday, 2 January 2025 10:15 |
relative | Relative time description | 1 day ago |