Table of Contents

Method PeriodStartAt

Namespace
MailFathom.Domain.Delivery.Governance
Assembly
MailFathom.Domain.dll

PeriodStartAt(DateTimeOffset)

Finds the start of the period an instant falls in, which is the moment every count is taken since.

public DateTimeOffset PeriodStartAt(DateTimeOffset instant)

Parameters

instant DateTimeOffset

The moment to place in a period.

Returns

DateTimeOffset

The period's start, in UTC.

Remarks

Anchored at the Unix epoch so every process of a deployment, and every restart of one, agrees on where a period begins without anything having to be stored to say so.