mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-21 21:59:47 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.Serialization` still builds the normal Nuget package that is used by all other projects and includes all namespaces.
55 lines
1.6 KiB
C#
55 lines
1.6 KiB
C#
namespace SabreTools.Data.Models.ISO9660
|
|
{
|
|
/// <summary>
|
|
/// Datetime format represented by decimal ASCII
|
|
/// - Base (Primary/Supplementary/Enhanced) Volume Descriptor
|
|
/// - Extended Attribute Record
|
|
/// </summary>
|
|
/// <see href="https://ecma-international.org/wp-content/uploads/ECMA-119_5th_edition_december_2024.pdf"/>
|
|
public sealed class DecDateTime
|
|
{
|
|
/// <summary>
|
|
/// 4-byte ASCII digits
|
|
/// </summary>
|
|
public byte[] Year { get; set; } = new byte[4];
|
|
|
|
/// <summary>
|
|
/// 2-byte ASCII digits
|
|
/// </summary>
|
|
public byte[] Month { get; set; } = new byte[2];
|
|
|
|
/// <summary>
|
|
/// 2-byte ASCII digits
|
|
/// </summary>
|
|
public byte[] Day { get; set; } = new byte[2];
|
|
|
|
/// <summary>
|
|
/// 2-byte ASCII digits
|
|
/// </summary>
|
|
public byte[] Hour { get; set; } = new byte[2];
|
|
|
|
/// <summary>
|
|
/// 2-byte ASCII digits
|
|
/// </summary>
|
|
public byte[] Minute { get; set; } = new byte[2];
|
|
|
|
/// <summary>
|
|
/// 2-byte ASCII digits
|
|
/// </summary>
|
|
public byte[] Second { get; set; } = new byte[2];
|
|
|
|
/// <summary>
|
|
/// 2-byte ASCII digits
|
|
/// </summary>
|
|
public byte[] Centisecond { get; set; } = new byte[2];
|
|
|
|
/// <summary>
|
|
/// Time zone offset (from GMT = UTC 0), represented by a single byte
|
|
/// Unit = 15min offset
|
|
/// 0 = offset of -12 hours (UTC-12)
|
|
/// 100 = offset of +13 hours (UTC+13)
|
|
/// </summary>
|
|
public byte TimezoneOffset { get; set; }
|
|
}
|
|
}
|