TimeHelper Class | Helper帮助文档 |
时间帮助类
Inheritance Hierarchy
Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class TimeHelper
Public Class TimeHelper
public ref class TimeHelper
type TimeHelper = class end
The TimeHelper type exposes the following members.
Constructors
Name | Description | |
---|---|---|
TimeHelper | Initializes a new instance of the TimeHelper class |
Methods
Name | Description | |
---|---|---|
DateDiff | ||
DateDiff2 |
获得两个日期的间隔
| |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
FormatDate |
格式化日期时间
| |
GetFormatDate |
将时间格式化成 年月日 的形式,如果时间为null,返回当前系统时间
| |
GetFormatTime |
将时间格式化成 时分秒 的形式,如果时间为null,返回当前系统时间
| |
GetHashCode | (Inherited from Object.) | |
GetMonthLastDate |
返回某年某月最后一天
| |
GetRandomTime |
得到随机日期
| |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ReturnDateFormat |
返回每月的第一天和最后一天
| |
SecondToMinute |
把秒转换成分钟
| |
ToString | (Inherited from Object.) |
See Also