Table of Contents

Class S100DateTimes

Namespace
EncDotNet.S100.DataModel
Assembly
EncDotNet.S100.Core.dll

Parses the date and time values S-100 date ranges carry: a date (S100_TruncatedDate, written as 2026-03-01 or 20260301) with an optional time of day (Time, written as 06:30:00Z or 063000Z), as in the fixedDateRange complex attribute's dateStart/timeOfDayStart and dateEnd/timeOfDayEnd.

public static class S100DateTimes
Inheritance
S100DateTimes
Inherited Members

Remarks

Times without a zone are taken as UTC, as S-124 Ed 2.0.0 requires. A date given as a full date-time is accepted too, as some Edition 1.0.0 datasets write one. Truncated dates without a year (such as --03-01) aren't moments and return null.

Methods

Combine(string?, string?)

The UTC moment a date and optional time of day name: the start of the day when timeOfDay is null or empty.

public static DateTimeOffset? Combine(string? date, string? timeOfDay)

Parameters

date string

The date, or a full date-time.

timeOfDay string

The time of day, or null.

Returns

DateTimeOffset?

The moment, or null when either value doesn't parse.