Added support for Sun's hrtime_t.

This commit is contained in:
2016-09-18 05:09:02 +01:00
parent caf684929b
commit 09d0e32543
2 changed files with 47 additions and 0 deletions

View File

@@ -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));
}
}
}