TimeHelper Class

HD.Common

TimeHelper Class Helper帮助文档
时间帮助类
Inheritance Hierarchy

SystemObject  HD.CommonTimeHelper

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

  NameDescription
Public methodTimeHelper
Initializes a new instance of the TimeHelper class
Top
Methods

  NameDescription
Public methodStatic memberDateDiff
Public methodStatic memberDateDiff2
获得两个日期的间隔
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberFormatDate
格式化日期时间
Public methodGetFormatDate
将时间格式化成 年月日 的形式,如果时间为null,返回当前系统时间
Public methodGetFormatTime
将时间格式化成 时分秒 的形式,如果时间为null,返回当前系统时间
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetMonthLastDate
返回某年某月最后一天
Public methodStatic memberGetRandomTime
得到随机日期
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberReturnDateFormat
返回每月的第一天和最后一天
Public methodStatic memberSecondToMinute
把秒转换成分钟
Public methodToString (Inherited from Object.)
Top
See Also

Reference