Table of Contents

Method StartAt

Namespace
MailFathom.Domain.Scheduling
Assembly
MailFathom.Domain.dll

StartAt(TimeSpan, DateTimeOffset)

Finds the start of the period an instant falls in.

public static DateTimeOffset StartAt(TimeSpan period, DateTimeOffset instant)

Parameters

period TimeSpan

How long one period lasts.

instant DateTimeOffset

The moment to place in a period.

Returns

DateTimeOffset

The period's start, in UTC.

Exceptions

ArgumentOutOfRangeException

Thrown when period is not positive.