You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
-
- namespace Discord
- {
- //Source: https://github.com/dotnet/coreclr/blob/master/src/mscorlib/src/System/DateTimeOffset.cs
- internal static class DateTimeUtils
- {
- public static DateTimeOffset FromTicks(long ticks)
- => new DateTimeOffset(ticks, TimeSpan.Zero);
- public static DateTimeOffset? FromTicks(long? ticks)
- => ticks != null ? new DateTimeOffset(ticks.Value, TimeSpan.Zero) : (DateTimeOffset?)null;
-
- }
- }
|