discord_time_stamp

Crates.iodiscord_time_stamp
lib.rsdiscord_time_stamp
version0.2.6
sourcesrc
created_at2023-07-05 20:09:47.091292
updated_at2023-07-13 13:54:42.829117
descriptionA discord bot that prints discord timestamps
homepage
repositoryhttps://github.com/FlorianXXIV/discord_time_stamp
max_upload_size
id909332
size70,560
FlorianXXIV (FlorianXXIV)

documentation

https://docs.rs/discord_time_stamp

README

DiscordTimeStamp

This Discord bot prints out timestamps to make the timestamp feature of Discord more accesseable.

Usage-Bot

Commands are prefixed with ยง

  • time:
    • date as [year]-[month]-[day] (example 2023-07-05)
    • time as [hour]:[minute] (example 09:30)
    • offset as +/-[hour]:[minute] (example 02:00 or -02:00)
      • this is a UTC offset by default
      • Supports some Named timezones by their shorthands
        • (i.e. CEST GMT EET)
        • Since Timezone names overlap I recommend using UTC offset.
  • time_rel:
    • date as [year]-[month]-[day] (example 2023-07-05)
    • time as [hour]:[minute] (example 09:30)
    • offset as +/-[hour]:[minute] (example 02:00 or -02:00)
      • this is a UTC offset by default
      • Supports some Named timezones by their shorthands
        • (i.e. CEST GMT EET)
        • Since Timezone names overlap I recommend using UTC offset.
    • gives you the relative time (i.e. in 42 years)
  • time_f:
    • date as [year]-[month]-[day] (example 2023-07-05)
    • time as [hour]:[minute] (example 09:30)
    • offset as +/-[hour]:[minute] (example 02:00 or -02:00)
      • this is a UTC offset by default
      • Supports some Named timezones by their shorthands
        • (i.e. CEST GMT EET)
        • Since Timezone names overlap I recommend using UTC offset.
    • format as a single charakter
  • stamp
    • gives you the timestamp as t:<unix_time_stamp> so you can copy it.
    • date as [year]-[month]-[day] (example 2023-07-05)
    • time as [hour]:[minute] (example 09:30)
    • offset as +/-[hour]:[minute] (example 02:00 or -02:00)
      • this is a UTC offset by default
      • Supports some Named timezones by their shorthands
        • (i.e. CEST GMT EET)
        • Since Timezone names overlap I recommend using UTC offset.
  • stamp_rel
    • same as above but with relative time
    • date as [year]-[month]-[day] (example 2023-07-05)
    • time as [hour]:[minute] (example 09:30)
    • offset as +/-[hour]:[minute] (example 02:00 or -02:00)
      • this is a UTC offset by default
      • Supports some Named timezones by their shorthands
        • (i.e. CEST GMT EET)
        • Since Timezone names overlap I recommend using UTC offset.
  • stamp_f
    • same as stamp but with a custom formatter at the end.
    • date as [year]-[month]-[day] (example 2023-07-05)
    • time as [hour]:[minute] (example 09:30)
    • offset as +/-[hour]:[minute] (example 02:00 or -02:00)
      • this is a UTC offset by default
      • Supports some Named timezones by their shorthands
        • (i.e. CEST GMT EET)
        • Since Timezone names overlap I recommend using UTC offset.
    • format as a single charakter
Commit count: 21

cargo fmt