-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
using System; | ||
|
||
namespace EventStore.Client { | ||
internal static class EpochExtensions { | ||
private const long TicksPerMillisecond = 10000; | ||
private const long TicksPerSecond = TicksPerMillisecond * 1000; | ||
private const long TicksPerMinute = TicksPerSecond * 60; | ||
private const long TicksPerHour = TicksPerMinute * 60; | ||
private const long TicksPerDay = TicksPerHour * 24; | ||
private const int DaysPerYear = 365; | ||
private const int DaysPer4Years = DaysPerYear * 4 + 1; | ||
private const int DaysPer100Years = DaysPer4Years * 25 - 1; | ||
private const int DaysPer400Years = DaysPer100Years * 4 + 1; | ||
private const int DaysTo1970 = DaysPer400Years * 4 + DaysPer100Years * 3 + DaysPer4Years * 17 + DaysPerYear; | ||
private const long UnixEpochTicks = DaysTo1970 * TicksPerDay; | ||
static class EpochExtensions { | ||
private const long TicksPerMillisecond = 10000; | ||
private const long TicksPerSecond = TicksPerMillisecond * 1000; | ||
private const long TicksPerMinute = TicksPerSecond * 60; | ||
private const long TicksPerHour = TicksPerMinute * 60; | ||
private const long TicksPerDay = TicksPerHour * 24; | ||
private const int DaysPerYear = 365; | ||
private const int DaysPer4Years = DaysPerYear * 4 + 1; | ||
private const int DaysPer100Years = DaysPer4Years * 25 - 1; | ||
private const int DaysPer400Years = DaysPer100Years * 4 + 1; | ||
private const int DaysTo1970 = DaysPer400Years * 4 + DaysPer100Years * 3 + DaysPer4Years * 17 + DaysPerYear; | ||
private const long UnixEpochTicks = DaysTo1970 * TicksPerDay; | ||
|
||
private static readonly DateTime UnixEpoch = new(UnixEpochTicks, DateTimeKind.Utc); | ||
private static readonly DateTime UnixEpoch = new(UnixEpochTicks, DateTimeKind.Utc); | ||
|
||
public static DateTime FromTicksSinceEpoch(this long value) => | ||
new DateTime(UnixEpoch.Ticks + value, DateTimeKind.Utc); | ||
private static readonly DateTime UnixEpoch = new(UnixEpochTicks, DateTimeKind.Utc); | ||
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net48/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net48/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net6.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net6.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net6.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net6.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net48/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net48/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net48/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net48/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net6.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net6.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net8.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net8.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net6.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net6.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net48/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net48/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net48/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net48/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net8.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net8.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test/EventStore.Client/ubuntu-latest/net48
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test/EventStore.Client/ubuntu-latest/net48
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net8.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net8.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net7.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net7.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test/EventStore.Client/ubuntu-latest/net7.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test/EventStore.Client/ubuntu-latest/net7.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net8.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net8.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net7.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net7.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net48/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net48/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net48/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net48/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net48/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net48/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net7.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net7.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test/EventStore.Client/ubuntu-latest/net6.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test/EventStore.Client/ubuntu-latest/net6.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net8.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net8.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net6.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net6.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net6.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net6.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net7.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net7.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net8.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net8.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net6.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net6.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net6.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net6.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net7.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net7.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net8.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net8.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net6.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net6.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net7.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net7.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net7.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net7.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net7.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net7.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net48/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net48/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net48/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net48/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net6.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net6.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net8.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net8.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net8.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net8.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net6.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net6.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net6.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net6.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net7.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net7.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net7.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net7.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net7.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net7.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net48
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net48
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net48
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net48
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net48/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net48/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net6.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net6.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net48/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net48/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net48/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net48/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net48/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net48/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net7.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net7.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net6.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net6.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net6.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net6.0/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net48/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net48/previous-lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net6.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net6.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net8.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net8.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net8.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / build-samples/ubuntu-latest/net8.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net8.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net8.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net8.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net8.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net8.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net8.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net7.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.ProjectionManagement/ubuntu-latest/net7.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net7.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net7.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net7.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Operations/ubuntu-latest/net7.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net6.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net6.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net7.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.PersistentSubscriptions/ubuntu-latest/net7.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net8.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net8.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net8.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.Streams/ubuntu-latest/net8.0/lts
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net8.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net8.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net7.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test / EventStore.Client.UserManagement/ubuntu-latest/net7.0/ci
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test/EventStore.Client/windows-latest/net48
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test/EventStore.Client/windows-latest/net48
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test/EventStore.Client/windows-latest/net7.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test/EventStore.Client/windows-latest/net7.0
Check failure on line 18 in src/EventStore.Client.Common/EpochExtensions.cs GitHub Actions / test/EventStore.Client/windows-latest/net6.0
|
||
|
||
public static long ToTicksSinceEpoch(this DateTime value) => | ||
(value - UnixEpoch).Ticks; | ||
} | ||
public static long ToTicksSinceEpoch(this DateTime value) => (value - UnixEpoch).Ticks; | ||
} |