DateHelperGetTimestamp Method (DateTime) |
获取某个时间的 UNIX 时间戳, 即从 1970年1月1日 00:00:00 到某个时间的秒数之和.
Namespace: X3Platform.UtilAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static long GetTimestamp(
DateTime datetime
)
public:
static long long GetTimestamp(
DateTime datetime
)
Parameters
- datetime
- Type: SystemDateTime
[Missing <param name="datetime"/> documentation for "M:X3Platform.Util.DateHelper.GetTimestamp(System.DateTime)"]
Return Value
Type:
Int64[Missing <returns> documentation for "M:X3Platform.Util.DateHelper.GetTimestamp(System.DateTime)"]
See Also