Added support for High Sierra Format.

This commit is contained in:
2017-10-08 22:47:09 +01:00
parent e0eec87d50
commit 97b4ebe76a
6 changed files with 197 additions and 28 deletions

View File

@@ -81,6 +81,13 @@ namespace DiscImageChef
return UNIXEpoch.AddSeconds(UNIXTimeStamp);
}
public static DateTime HighSierraToDateTime(byte[] VDDateTime)
{
byte[] isotime = new byte[17];
Array.Copy(VDDateTime, 0, isotime, 0, 16);
return ISO9660ToDateTime(isotime);
}
public static DateTime ISO9660ToDateTime(byte[] VDDateTime)
{
int year, month, day, hour, minute, second, hundredths;