Click or drag to resize
DateHelper Class
时间处理辅助类
Inheritance Hierarchy
SystemObject
  X3Platform.UtilDateHelper

Namespace: X3Platform.Util
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public class DateHelper

The DateHelper type exposes the following members.

Constructors
  NameDescription
Public methodDateHelper
Initializes a new instance of the DateHelper class
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetTimeSpan(DateTime)
获取某个时间到当前时间的时间间隔
Public methodStatic memberGetTimeSpan(DateTime, DateTime)
获取某段时间的时间间隔
Public methodStatic memberGetTimestamp
获取当前时间的时间戳 UNIX 时间戳, 即从 1970年1月1日 00:00:00 到当前时间的秒数之和.
Public methodStatic memberGetTimestamp(DateTime)
获取某个时间的 UNIX 时间戳, 即从 1970年1月1日 00:00:00 到某个时间的秒数之和.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
See Also