* DiscImageChef.Filesystems/UCSDPascal/Dir.cs:

Typo.

	* DiscImageChef.Helpers/DateHandlers.cs:
	  Added CP/M timestamp converter.

	* DiscImageChef.Partitions/Acorn.cs:
	  Corrected handling of negative values.

	* DiscImageChef/Commands/ExtractFiles.cs:
	  Corrected behaviour when volume name is missing, null or
	  empty.

	* DiscImageChef.DiscImages/ImagePlugin.cs:
	  Added floppy address mark sector tag.
This commit is contained in:
2016-08-26 01:43:15 +01:00
parent 7465f306c0
commit f9bb6f25c8
21 changed files with 22580 additions and 7 deletions

View File

@@ -164,6 +164,19 @@ namespace DiscImageChef
DicConsole.DebugWriteLine("DOSToDateTime handler", "time = 0x{0:X4}, hour = {1}, minute = {2}, second = {3}", time, hour, minute, second);
return new DateTime(year, month, day, hour, minute, second);
}
public static DateTime CPMToDateTime(byte[] timestamp)
{
ushort days = BitConverter.ToUInt16(timestamp, 0);
int hours = timestamp[2];
int minutes = timestamp[3];
DateTime temp = AmigaEpoch.AddDays(days);
temp = temp.AddHours(hours);
temp = temp.AddMinutes(minutes);
return temp;
}
}
}