C# Class com.Sconit.Utility.DateTimeHelper

Mostra file Open project: Novthirteen/yfkey-scms

Public Methods

Method Description
GetEndStartTime ( string timePeriodType, System.DateTime endTime ) : System.DateTime
GetEndTime ( string timePeriodType, System.DateTime startTime ) : System.DateTime
GetNextStartTime ( string timePeriodType, System.DateTime startTime ) : System.DateTime
GetQuarter ( System.DateTime date ) : string
GetQuarterIndex ( System.DateTime date ) : int
GetStartTime ( string timePeriodType, System.DateTime startTime ) : System.DateTime
GetWeekIndex ( System.DateTime date ) : int
GetWeekIndexDateFrom ( string weekOfYear ) : System.DateTime
GetWeekOfYear ( System.DateTime curDay ) : string

return 2012-25

GetWeekStart ( System.DateTime date ) : System.DateTime

Private Methods

Method Description
GetWeekOfYear ( System.DateTime dateTime, int weekIndex ) : string

Method Details

GetEndStartTime() public static method

public static GetEndStartTime ( string timePeriodType, System.DateTime endTime ) : System.DateTime
timePeriodType string
endTime System.DateTime
return System.DateTime

GetEndTime() public static method

public static GetEndTime ( string timePeriodType, System.DateTime startTime ) : System.DateTime
timePeriodType string
startTime System.DateTime
return System.DateTime

GetNextStartTime() public static method

public static GetNextStartTime ( string timePeriodType, System.DateTime startTime ) : System.DateTime
timePeriodType string
startTime System.DateTime
return System.DateTime

GetQuarter() public static method

public static GetQuarter ( System.DateTime date ) : string
date System.DateTime
return string

GetQuarterIndex() public static method

public static GetQuarterIndex ( System.DateTime date ) : int
date System.DateTime
return int

GetStartTime() public static method

public static GetStartTime ( string timePeriodType, System.DateTime startTime ) : System.DateTime
timePeriodType string
startTime System.DateTime
return System.DateTime

GetWeekIndex() public static method

public static GetWeekIndex ( System.DateTime date ) : int
date System.DateTime
return int

GetWeekIndexDateFrom() public static method

public static GetWeekIndexDateFrom ( string weekOfYear ) : System.DateTime
weekOfYear string
return System.DateTime

GetWeekOfYear() public static method

return 2012-25
public static GetWeekOfYear ( System.DateTime curDay ) : string
curDay System.DateTime
return string

GetWeekStart() public static method

public static GetWeekStart ( System.DateTime date ) : System.DateTime
date System.DateTime
return System.DateTime