2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.PKZIP
|
2025-09-26 10:57:15 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The unix modified time, last access time, and creation time, if set
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Header ID = 0x5455</remarks>
|
2025-10-30 23:01:55 -04:00
|
|
|
/// <see href="https://github.com/adamhathcock/sharpcompress/blob/master/src/SharpCompress/Common/Zip/Headers/LocalEntryHeaderExtraFactory.cs"/>
|
2025-09-26 10:57:15 -04:00
|
|
|
public class ExtendedTimestampExtraField : ExtensibleDataField
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Indicates what tiemstamps are included
|
|
|
|
|
/// </summary>
|
|
|
|
|
public RecordedTimeFlag Flags { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Last modified time
|
|
|
|
|
/// </summary>
|
2025-10-30 23:01:55 -04:00
|
|
|
/// <remarks>Only available when <see cref="RecordedTimeFlag.LastModified"/> is set</remarks>
|
2025-09-26 10:57:15 -04:00
|
|
|
public uint? LastModified { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Last accessed time
|
|
|
|
|
/// </summary>
|
2025-10-30 23:01:55 -04:00
|
|
|
/// <remarks>Only available when <see cref="RecordedTimeFlag.LastAccessed"/> is set</remarks>
|
2025-09-26 10:57:15 -04:00
|
|
|
public uint? LastAccessed { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Created on time
|
|
|
|
|
/// </summary>
|
2025-10-30 23:01:55 -04:00
|
|
|
/// <remarks>Only available when <see cref="RecordedTimeFlag.Created"/> is set</remarks>
|
2025-09-26 10:57:15 -04:00
|
|
|
public uint? CreatedOn { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|