DateTimeOffset.UtcTicks 屬性

定義

取得刻度數,這個值表示目前 DateTimeOffset 物件之 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 物件的 Coordinated Universal Time (UTC) 刻度數。

備註

屬性的值 UtcTicks 代表自 12:00:00 午夜起于 0001 年 1 月 1 日之後經過的 MinValue 100 奈秒間隔數目, () 的值。 它不包含以閏秒新增的刻度。 nanosecond 是每秒 10 億個;秒內有十萬個刻度。 UtcTicks屬性值的範圍從 DateTimeOffset.MinValue.TicksDateTimeOffset.MaxValue.Ticks

適用於