Logo Hegel for F#

Gen.Temporal Module

The date and time generators, under the names every Hegel frontend shares. The values they draw, and ZoneSource, are in the Hegel.FSharp.Temporal namespace.

Functions and values

Function or value Description

date

Full Usage: date

Returns: DateGenerator

Dates; .Min, .Max, .Weekdays and .Months narrow them.

Returns: DateGenerator

dateTime

Full Usage: dateTime

Returns: DateTimeGenerator

Date-times without a time zone; .Min, .Max and .Precision narrow them, and .WithOffsets gives them a UTC offset.

Returns: DateTimeGenerator

dateTimeOffset

Full Usage: dateTimeOffset

Returns: Generator<DateTimeOffset>

Date-times with a UTC offset.

Returns: Generator<DateTimeOffset>

duration

Full Usage: duration

Returns: DurationGenerator

Exact lengths of time of either sign; .Min, .Max and .Precision narrow them.

Returns: DurationGenerator

instant

Full Usage: instant

Returns: InstantGenerator

Instants, as DateTimeOffsets with a zero offset; .Min, .Max and .Precision narrow them.

Returns: InstantGenerator

offset

Full Usage: offset

Returns: OffsetGenerator

UTC offsets, whole minutes between -14:00 and +14:00; .Min, .Max and .Granularity narrow them.

Returns: OffsetGenerator

span

Full Usage: span

Returns: SpanGenerator

Calendar spans, a count of each unit from years to nanoseconds; the unit methods (.Years to .Nanoseconds) bound the units drawn and .Sign sets their signs.

Returns: SpanGenerator

time

Full Usage: time

Returns: TimeGenerator

Times of day; .Min, .Max and .Precision narrow them.

Returns: TimeGenerator

zone ()

Full Usage: zone ()

Parameters:
    () : unit

Returns: ZoneGenerator

Time zones this system has a TimeZoneInfo for; .Names, .AllowLinks, .AllowLegacy and .Source narrow them. A function, because the generator draws from ZoneSource.Default as it is when the generator is made.

() : unit
Returns: ZoneGenerator

zonedDateTime ()

Full Usage: zonedDateTime ()

Parameters:
    () : unit

Returns: ZonedDateTimeGenerator

Date-times in time zones; .Zones, .Source, .Min, .Max, .Precision, .Ambiguous and .AllowImaginary narrow them. A function, because the generator draws from ZoneSource.Default as it is when the generator is made.

() : unit
Returns: ZonedDateTimeGenerator

Type something to start searching.