TimeHelper Methods

HD.Common

TimeHelper Methods Helper帮助文档

The TimeHelper type exposes the following members.

Methods

  Name Description
Public method Static member DateDiff
Public method Static member DateDiff2
获得两个日期的间隔
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method Static member FormatDate
格式化日期时间
Public method GetFormatDate
将时间格式化成 年月日 的形式,如果时间为null,返回当前系统时间
Public method GetFormatTime
将时间格式化成 时分秒 的形式,如果时间为null,返回当前系统时间
Public method GetHashCode (Inherited from Object.)
Public method Static member GetMonthLastDate
返回某年某月最后一天
Public method Static member GetRandomTime
得到随机日期
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Static member ReturnDateFormat
返回每月的第一天和最后一天
Public method Static member SecondToMinute
把秒转换成分钟
Public method ToString (Inherited from Object.)
Top
See Also

Reference