Code/V2/Application/Clock.cs

Defines IHexClock interface exposing UtcNow and a concrete SystemHexClock that returns DateTimeOffset.UtcNow.

Native Interop
#nullable enable

using System;

namespace Hexagon.V2.Application;

public interface IHexClock
{
	DateTimeOffset UtcNow { get; }
}

public sealed class SystemHexClock : IHexClock
{
	public DateTimeOffset UtcNow => DateTimeOffset.UtcNow;
}