Serilog.Sinks.Splunk.EpochExtensions public static class EpochExtensions Provides extension methods for DateTimeOffset to convert to epoch time. Documentation Code public static string ToEpoch(this DateTimeOffset value, SubSecondPrecision subSecondPrecision = 3) Converts a DateTimeOffset value to epoch time with specified sub-second precision.