diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-08-22 17:07:17 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-08-22 17:07:17 -0700 |
| commit | 291195b17e40c9ebc75e6d0b25195a02596b59e1 (patch) | |
| tree | 863a48938fd9c17a536092d66d6526f8e7c6a3d3 | |
| parent | c87cce7d4ab42405d18d18ad15c45465e0de3057 (diff) | |
lint eorzean_time.rs
| -rw-r--r-- | src/eorzean_time.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eorzean_time.rs b/src/eorzean_time.rs index afd4809..e6ac83b 100644 --- a/src/eorzean_time.rs +++ b/src/eorzean_time.rs @@ -1,5 +1,4 @@ use chrono::{DateTime,Utc}; -use std::fmt; const EORZEA_CONSTANT: f64 = 3600.0 / 175.0; @@ -105,7 +104,7 @@ pub fn convert_to_eorzean_date<T: ToUnixTimestamp>(input_time: T) -> EorzeanDate let bells = (epoch / (1000.0 * EORZEA_SECONDS_PER_HOUR)) % 24.0; let total_suns = (epoch / (1000.0 * EORZEA_SECONDS_PER_SUN)) as u64; let year = total_suns / (32 * 12); - let moon_idx = ((total_suns / 32) % 12 + 1); + let moon_idx = (total_suns / 32) % 12 + 1; let mut moon_str = EORZEA_MOON_CYCLE_PREFIX[(moon_idx / 2) as usize].to_string(); if moon_idx % 2 == 0 { |
