9 references to DateTimeOffset
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (9)
62public static readonly DateTimeOffset MaxValue = new DateTimeOffset(0, DateTime.CreateUnchecked(DateTime.MaxTicks)); 63public static readonly DateTimeOffset UnixEpoch = new DateTimeOffset(0, DateTime.CreateUnchecked(DateTime.UnixEpochTicks)); 81public DateTimeOffset(long ticks, TimeSpan offset) : this(ValidateOffset(offset), ValidateDate(new DateTime(ticks), offset)) 85private static DateTimeOffset CreateValidateOffset(DateTime dateTime, TimeSpan offset) => new DateTimeOffset(ValidateOffset(offset), ValidateDate(dateTime, offset)); 332public static DateTimeOffset UtcNow => new DateTimeOffset(0, DateTime.SpecifyKind(DateTime.UtcNow, DateTimeKind.Unspecified)); 533private DateTimeOffset Add(DateTime dateTime) => new DateTimeOffset(_offsetMinutes, ValidateDate(dateTime, Offset)); 594return new DateTimeOffset(0, DateTime.CreateUnchecked(ticks)); 608return new DateTimeOffset(0, DateTime.CreateUnchecked(ticks)); 811public DateTimeOffset ToUniversalTime() => new DateTimeOffset(0, _dateTime);