A Discord timestamp generator
kairos [--format=mode] [time]
short-timelong-timeshort-datelong-dateshort-date-time*long-date-timerelative
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:
YYYYis a four-digit yearMMis a two-digit monthDDis a two-digit dayHHis a two-digit hourmmis a two-digit minuteUTC±Ois the stringUTCfollowed 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.