Tool

Unix timestamp converter with Discord and Slack date formats

Never hard-code a time in a bot message. Send a timestamp tag and each user sees it in their own zone and language. Paste any number or date; the unit is detected automatically.

Discord timestamp tags

Previews use your browser locale; Discord renders them in each reader's language and zone.

Slack date tokens

Text after the | is the fallback shown in notifications and old clients.

Time zones

Difference between two times

Time handling rules for bots

  • Store and compute in UTC; convert only when displaying.
  • Telegram and Slack send Unix seconds, Discord snowflakes encode milliseconds since 2015, and JavaScript Date uses milliseconds: check the unit before comparing.
  • Schedule recurring jobs in an explicit IANA zone if they must follow local time across daylight saving changes.

Related: Cron builder, Snowflake decoder.