mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Update timespan.rs
This commit is contained in:
parent
83bd533580
commit
109b6c5647
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ const DAY: f32 = 24.0 * HOUR;
|
||||||
const MONTH: f32 = 30.417 * DAY; // 365/12 ≈ 30.417
|
const MONTH: f32 = 30.417 * DAY; // 365/12 ≈ 30.417
|
||||||
const YEAR: f32 = 365.0 * DAY;
|
const YEAR: f32 = 365.0 * DAY;
|
||||||
|
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
|
||||||
pub(crate) enum TimespanUnit {
|
pub(crate) enum TimespanUnit {
|
||||||
Seconds,
|
Seconds,
|
||||||
Minutes,
|
Minutes,
|
||||||
|
|
Loading…
Reference in a new issue