mirror of
https://github.com/RGBCube/revolt.v
synced 2025-07-28 01:17:46 +00:00
Better formatting and rename id_holder.v to id.v
This commit is contained in:
parent
6e2ea77d76
commit
5dec948e80
2 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ pub enum TimeFormat as u8 {
|
|||
}
|
||||
|
||||
// format returns a Revolt representation of the time in the given format.
|
||||
// E.g. <t:1670178420:f> for TimeFormat.short_date_time ran on a time of 1670178420.
|
||||
// E.g. `<t:1670178420:f>` for `TimeFormat.short_date_time` ran on a time of `1670178420`.
|
||||
[inline]
|
||||
pub fn (t Time) format(format TimeFormat) string {
|
||||
return '<t:${t.unix}:${rune(format)}>'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue