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
periodTimeSpanHow long one period lasts.
instantDateTimeOffsetThe moment to place in a period.
Returns
- DateTimeOffset
The period's start, in UTC.
Exceptions
- ArgumentOutOfRangeException
Thrown when
periodis not positive.