Skip to content

Commit

Permalink
fix to_bdt_duration
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume W. Bres <[email protected]>
  • Loading branch information
gwbres committed Sep 30, 2023
1 parent 7f6441e commit 729160d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,7 @@ impl Epoch {
#[must_use]
/// Returns `Duration` past BDT (BeiDou) time Epoch.
pub fn to_bdt_duration(&self) -> Duration {
self.to_tai_duration() - BDT_REF_EPOCH.to_tai_duration()
self.to_time_scale(TimeScale::BDT).duration
}

#[must_use]
Expand Down

0 comments on commit 729160d

Please sign in to comment.