diff --git a/src/timestamp.rs b/src/timestamp.rs index f91cb9d..c7f599f 100644 --- a/src/timestamp.rs +++ b/src/timestamp.rs @@ -28,6 +28,10 @@ impl WinTimestamp { Self::from_reader(&mut Cursor::new(buffer)) } + pub fn from_u64(value: u64) -> Self { + WinTimestamp(value) + } + #[inline] pub fn from_reader(reader: &mut R) -> Result { let win_timestamp = WinTimestamp(reader.read_u64::()?);