mirror of
https://github.com/RGBCube/bonfire.v
synced 2025-07-28 14:37:44 +00:00
Fix paste failure
This commit is contained in:
parent
e908c460aa
commit
042b305b3a
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ pub type Snowflake = u64
|
|||
// created_at returns the Time the Snowflake was created at.
|
||||
[inline]
|
||||
pub fn (s Snowflake) created_at() Time {
|
||||
seconds, milliseconds := v(i64((s >> 22) + .discord_epoch_ms))
|
||||
seconds, milliseconds := separate_seconds_and_milliseconds(i64((s >> 22) + .discord_epoch_ms))
|
||||
return time.unix2(seconds, milliseconds * 1000)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue