2025-08-15 12:02:33 +02:00

24 lines
608 B
C#

using Utils;
namespace CodexContractsPlugin.ChainMonitor
{
public class ProofPeriod
{
public ProofPeriod(ulong periodNumber, DateTime startUtc, DateTime endUtc)
{
PeriodNumber = periodNumber;
StartUtc = startUtc;
EndUtc = endUtc;
}
public ulong PeriodNumber { get; }
public DateTime StartUtc { get; }
public DateTime EndUtc { get; }
public override string ToString()
{
return $"{PeriodNumber} - {Time.FormatTimestamp(StartUtc)} -> {Time.FormatTimestamp(EndUtc)}";
}
}
}