DateTimeOffset.UtcTicks 属性

定义

获取表示当前 DateTimeOffset 对象的协调世界时 (UTC) 日期和时间的计时周期数。Gets the number of ticks that represents the date and time of the current DateTimeOffset object in Coordinated Universal Time (UTC).

public:
 property long UtcTicks { long get(); };
public long UtcTicks { get; }
member this.UtcTicks : int64
Public ReadOnly Property UtcTicks As Long

属性值

DateTimeOffset 对象的协调世界时 (UTC) 中的计时周期数。The number of ticks in the DateTimeOffset object's Coordinated Universal Time (UTC).

注解

UtcTicks 属性的值表示自0001年1月1日午夜12:00:00 (MinValue的值)以来经过的100纳秒间隔数。The value of the UtcTicks property represents the number of 100-nanosecond intervals that have elapsed since 12:00:00 midnight on January 1, 0001 (the value of MinValue). 它不包括闰秒将添加的时间刻度。It does not include ticks that would be added by leap seconds. 毫微秒为一秒的十亿分之一;第二个计时周期为10000000。A nanosecond is one billionth of a second; there are ten million ticks in a second. UtcTicks 属性的值范围是从 DateTimeOffset.MinValue.TicksDateTimeOffset.MaxValue.TicksThe value of the UtcTicks property ranges from DateTimeOffset.MinValue.Ticks to DateTimeOffset.MaxValue.Ticks.

适用于