A Discord timestamp generator
kairos [--format=mode] [time]
short-time
long-time
short-date
long-date
short-date-time
*long-date-time
relative
For more, see https://discord.com/developers/docs/reference#message-formatting-timestamp-styles for more for more.
* default
kairos will pattern matche a time in the format of YYYY-MM-DD HH:mm UTC±O
where:
YYYY
is a four-digit yearMM
is a two-digit monthDD
is a two-digit dayHH
is a two-digit hourmm
is a two-digit minuteUTC±O
is the stringUTC
followed by+
or-
and then a float offsetO
If anything is left out, the default of the current date, time, and timezone will be used.
kairos
This will print out the Discord timestamp in short date time format using local time.
kairos --format relative 1970-01-01 00:00 UTC+0
This will return <t:0:R>
which will print out the amount of time that has elapsed since the Unix epoch.