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