Share via


Timestamp 类

定义

表示包含协调世界时 (UTC) 的年、月、日、小时、分钟、秒、微秒的时间戳。

public class Timestamp
type Timestamp = class
Public Class Timestamp
继承
Timestamp

构造函数

Timestamp(DateTime)

Timestamp 类的构造函数。

Timestamp(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Timestamp 类的构造函数,defaut 时区是协调世界时 (UTC) 。

属性

Day

返回时间戳的天部分。

Hour

返回时间戳的小时部分。

Microsecond

返回时间戳的微秒分量。

Minute

返回时间戳的分钟部分。

Month

返回时间戳的月份部分。

Second

返回时间戳的第二个分量。

Year

返回时间戳的年份部分。

方法

Equals(Object)

检查给定对象是否与当前对象相同。

GetHashCode()

返回当前 对象的哈希代码。

ToDateTime()

返回描述此类型的 DateTime 对象。

ToString()

此类型的可读字符串表示形式。

适用于