Skip to content

Commit

Permalink
Delete duplicate methods
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusGMorrison committed Jan 28, 2024
1 parent 06d96c5 commit 0fe692c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions crates/lox_core/src/time/utc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,6 @@ impl UTC {
})
}

/// Returns the `hour` component of the timestamp in a representation convenient for calculations.
pub fn hour(&self) -> i64 {
self.hour as i64
}

/// Returns the `minute` component of the timestamp in a representation convenient for calculations.
pub fn minute(&self) -> i64 {
self.minute as i64
}

/// Returns the `second` component of the timestamp in a representation convenient for calculations.
pub fn second(&self) -> i64 {
self.second as i64
}

pub fn subsecond_as_attoseconds(&self) -> u64 {
let mut attoseconds = self.atto.0 as u64;
attoseconds += self.femto.0 as u64 * ATTOSECONDS_PER_FEMTOSECOND;
Expand Down

0 comments on commit 0fe692c

Please sign in to comment.