Skip to content
Lists & Helpers discordTime

$discordTime — Builds a Discord dynamic timestamp (<t:…>) that each member sees in their own language and time zone

Builds a Discord dynamic timestamp (``) that each member sees in their own language and time zone.

Syntax

$discordTime[timestamp;(format)]

Parameters

  • timestamp (integer, required) — A unix timestamp in seconds (milliseconds are accepted).
  • format (t T d D f F or R, optional) — R (default) is relative (“in 2 hours”).

Return Value

  • string.

Usage

$discordTime[1700000000] → "<t:1700000000:R>"
$discordTime[1700000000;F] → "<t:1700000000:F>"

Example

$sendMessage[$discordTime[1700000000]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.