C# Class MWS.Helper.DateTimeHelper

显示文件 Open project: Movilizer/.NET_Connector

Public Methods

Method Description
FormatDate ( System.DateTime dt ) : string
GetTimestamp ( bool forFilename ) : string
GetTimestamp ( this value, bool forFilename ) : string
GetWeekOfYear ( ) : int
GetYear ( ) : int
ToDateTime ( long timestamp ) : System.DateTime

Method Details

FormatDate() public static method

public static FormatDate ( System.DateTime dt ) : string
dt System.DateTime
return string

GetTimestamp() public static method

public static GetTimestamp ( bool forFilename ) : string
forFilename bool
return string

GetTimestamp() public static method

public static GetTimestamp ( this value, bool forFilename ) : string
value this
forFilename bool
return string

GetWeekOfYear() public static method

public static GetWeekOfYear ( ) : int
return int

GetYear() public static method

public static GetYear ( ) : int
return int

ToDateTime() public static method

public static ToDateTime ( long timestamp ) : System.DateTime
timestamp long
return System.DateTime