Also use Duration and UNIX_TIME from web-time crate

This commit is contained in:
Hubert Chathi 2024-03-21 10:20:03 -04:00 committed by GitHub
parent ccd3b81557
commit 4c00bd010d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,12 +1,9 @@
use std::{
fmt,
time::{Duration, UNIX_EPOCH},
};
use std::fmt;
use js_int::{uint, UInt};
use serde::{Deserialize, Serialize};
use time::OffsetDateTime;
use web_time::SystemTime;
use web_time::{Duration, SystemTime, UNIX_EPOCH};
/// A timestamp represented as the number of milliseconds since the unix epoch.
#[derive(Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord, Deserialize, Serialize)]