Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/ntfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/time.rs')
-rw-r--r--src/time.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/time.rs b/src/time.rs
index ea351da..3f218da 100644
--- a/src/time.rs
+++ b/src/time.rs
@@ -43,6 +43,12 @@ impl Deref for NtfsTime {
}
}
+impl From<u64> for NtfsTime {
+ fn from(value: u64) -> Self {
+ Self(value)
+ }
+}
+
#[cfg(feature = "chrono")]
impl TryFrom<DateTime<Utc>> for NtfsTime {
type Error = NtfsError;