Table of Contents

Namespace Hegel.Temporal

Classes

DateGenerator

Draws dates, shrinking toward 2000-01-01. See Dates() for how bad arguments are reported.

DateTimeGenerator

Draws date-times without a time zone (Unspecified), shrinking toward 2000-01-01T00:00. See Dates() for how bad arguments are reported.

DurationGenerator

Draws exact lengths of time, as TimeSpans of either sign, shrinking toward zero. See Dates() for how bad arguments are reported.

InstantGenerator

Draws instants, as DateTimeOffsets with a zero offset, shrinking toward 2000-01-01T00:00Z. See Dates() for how bad arguments are reported.

OffsetGenerator

Draws UTC offsets, as TimeSpans east of UTC, shrinking toward zero: whole minutes between -14:00 and +14:00 by default, which is what a DateTimeOffset can hold. See Dates() for how bad arguments are reported.

SpanGenerator

Draws calendar spans, shrinking toward the zero span. Every unit is drawn until one of the unit methods is called; from then on only the units given bounds are, and the others are zero. See Dates() for how bad arguments are reported.

TimeGenerator

Draws times of day, shrinking toward midnight. See Dates() for how bad arguments are reported.

ZoneGenerator

Draws time zones, shrinking toward UTC: the zones of a ZoneSource that this system has a TimeZoneInfo for. The source is the one Source(ZoneSource) names, or else Default as it was when the generator was created. See Zones() for how bad arguments are reported.

ZoneOracle

A time zone described by a function from an instant to the offset in force, for a library that answers lookups but does not expose its zone data. The engine probes the function over a range of years to find the zone's transitions, when the zone is added to a ZoneSource.

ZoneSource

The time zone data that Zones() and ZonedDateTimes() draw from: which zones exist, and when each one's offset changes. It should be the data the code under test uses, so that a drawn wall-clock time is skipped or repeated for that code too.

ZoneSourceBuilder

Collects the zones of a ZoneSource; Build() makes the source. Each method returns the builder.

ZonedDateTimeGenerator

Draws date-times in time zones, shrinking toward 2000-01-01T00:00 in UTC. The engine draws the zone, then a wall-clock time in it, and reads that time against the zone source: one draw in twenty on average lands on or beside one of the zone's transitions, which is how skipped and repeated times are reached. See ZonedDateTimes() for how bad arguments are reported.

Structs

CalendarSpan

A span of calendar and clock units, as Spans() draws it: one count per unit, each kept as drawn rather than folded into the next (13 months stay 13 months). .NET has no such type of its own: a TimeSpan is an exact length of time and has no months or years.

ZoneLocalType

The offset, daylight-saving flag and abbreviation a ZoneOracle reports for an instant.

ZonedDateTime

A date and time in a time zone, as ZonedDateTimes() draws it: the wall-clock time, the zone, and what the generator's ZoneSource says that wall clock means there. .NET has no such type of its own: a DateTimeOffset keeps the offset but not the zone, and cannot say that a wall-clock time was skipped or repeated.

Interfaces

IZoneData

Where a zone source's data goes: what Loader(Action<string, IZoneData>)'s function is given to supply the zone it was asked for.

Enums

Ambiguous

Which instant a zoned date-time draw means by a wall-clock time the clocks repeated.

OffsetGranularity

The unit a drawn UTC offset is a whole number of.

Precision

The unit a drawn time is a whole number of.

SpanSign

How the signs of a calendar span's units are drawn.

WallTimeKind

What a wall-clock time is in its zone.

ZoneBeyond

What a ZoneOracle's zone does after the last year it was probed over.