Table of Contents

Method EndAt

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

EndAt(TimeSpan, DateTimeOffset)

Finds when the period an instant falls in rolls over.

public static DateTimeOffset EndAt(TimeSpan period, DateTimeOffset instant)

Parameters

period TimeSpan

How long one period lasts.

instant DateTimeOffset

The moment to place in a period.

Returns

DateTimeOffset

The instant the next period begins, in UTC.

Exceptions

ArgumentOutOfRangeException

Thrown when period is not positive.