Skip to main content

Module text_time

Module text_time 

Source
Expand description

Times that read the same everywhere, Discord’s <t:UNIX:STYLE>.

On send each <t:…> outside code becomes a fixed UTC rendering, 2026-10-09 14:00 UTC, and a ["time", from, to, unix, style] tag. Other clients read a real time; a Vector shows it in the reader’s own zone and locale. A tag only counts when the text it covers is exactly that rendering of its own instant, so it can never stand in for other words.

Structs§

TimeSpan

Constants§

STYLES
Discord’s styles: t T (time), d D (date), f F (date and time, f the default), s S (short date with time), R (relative).
TAG

Functions§

fallback
The fixed UTC text a time travels as: YYYY-MM-DD HH:MM UTC, with :SS when not on the minute.