mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added support for Sun's hrtime_t.
This commit is contained in:
@@ -224,6 +224,11 @@ namespace DiscImageChef
|
||||
|
||||
return new DateTimeOffset(year, month, day, hour, minute, second, new TimeSpan(0, offset, 0)).AddTicks(ticks).DateTime;
|
||||
}
|
||||
|
||||
public static DateTime UNIXHrTimeToDateTime(ulong HRTimeStamp)
|
||||
{
|
||||
return UNIXEpoch.AddTicks((long)(HRTimeStamp / 100));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user