formatting
This commit is contained in:
parent
aae02b8e7b
commit
bd60ba6cf3
@ -1950,11 +1950,9 @@ mod tests {
|
||||
.unwrap()
|
||||
.and_local_timezone(chrono::Utc)
|
||||
.unwrap();
|
||||
let time_provider = CdsTime::from_unix_time_with_u16_days(
|
||||
&datetime_utc.into(),
|
||||
SubmillisPrecision::Absent,
|
||||
)
|
||||
.expect("creating provider from unix stamp failed");
|
||||
let time_provider =
|
||||
CdsTime::from_unix_time_with_u16_days(&datetime_utc.into(), SubmillisPrecision::Absent)
|
||||
.expect("creating provider from unix stamp failed");
|
||||
// https://www.timeanddate.com/date/durationresult.html?d1=01&m1=01&y1=1958&d2=14&m2=01&y2=2023
|
||||
// Leap years need to be accounted for as well.
|
||||
assert_eq!(time_provider.ccsds_days, 23754);
|
||||
|
Loading…
x
Reference in New Issue
Block a user