20 lines
439 B
C#
20 lines
439 B
C#
namespace NethereumWorkflow.BlockUtils
|
|
{
|
|
public class BlockTimeEntry
|
|
{
|
|
public BlockTimeEntry(ulong blockNumber, DateTime utc)
|
|
{
|
|
BlockNumber = blockNumber;
|
|
Utc = utc;
|
|
}
|
|
|
|
public ulong BlockNumber { get; }
|
|
public DateTime Utc { get; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"[{BlockNumber}] @ {Utc.ToString("o")}";
|
|
}
|
|
}
|
|
}
|