namespace Electricity.Api.Extensions;

public static class DateTimeExtensions
{
    public static uint ToEpoch(this DateTime dateTime) =>
        (uint)Math.Round((dateTime - DateTime.UnixEpoch).TotalSeconds);
}