kitazith/message_formatting/timestamp
Types
Discord message timestamp display styles.
Learn more: API Reference - Documentation - Discord > Message Formatting > Timestamp Styles
pub type Style {
Default
ShortTime
MediumTime
ShortDate
LongDate
LongDateShortTime
FullDateShortTime
ShortDateShortTime
ShortDateMediumTime
RelativeTime
}
Constructors
-
Default -
ShortTime -
MediumTime -
ShortDate -
LongDate -
LongDateShortTime -
FullDateShortTime -
ShortDateShortTime -
ShortDateMediumTime -
RelativeTime
Values
pub fn default(seconds: Int) -> String
Format Unix seconds using Discord’s default timestamp rendering.