C# Class Itenso.TimePeriodDemo.HumanNotions.TimeUnitCalc

ファイルを表示 Open project: jwg4/date-difference

Public Methods

Method Description
CalcTimeMoment ( System.DateTime baseMoment, TimeUnit offsetUnit, long offsetCount = 1, ITimeCalendar calendar = null ) : System.DateTime
CalcTimeMoment ( TimeUnit offsetUnit, long offsetCount = 1, ITimeCalendar calendar = null ) : System.DateTime
CalcTimePeriod ( System.DateTime baseMoment, TimeUnit periodUnit, long periodDuration = 1, TimeUnit offsetUnit = null, long offsetCount = 1, ITimeCalendar calendar = null ) : ITimePeriod
CalcTimePeriod ( TimeUnit periodUnit, long periodDuration = 1, TimeUnit offsetUnit = null, long offsetCount = 1, ITimeCalendar calendar = null ) : ITimePeriod

Private Methods

Method Description
ToInt ( long value ) : int

Method Details

CalcTimeMoment() public static method

public static CalcTimeMoment ( System.DateTime baseMoment, TimeUnit offsetUnit, long offsetCount = 1, ITimeCalendar calendar = null ) : System.DateTime
baseMoment System.DateTime
offsetUnit TimeUnit
offsetCount long
calendar ITimeCalendar
return System.DateTime

CalcTimeMoment() public static method

public static CalcTimeMoment ( TimeUnit offsetUnit, long offsetCount = 1, ITimeCalendar calendar = null ) : System.DateTime
offsetUnit TimeUnit
offsetCount long
calendar ITimeCalendar
return System.DateTime

CalcTimePeriod() public static method

public static CalcTimePeriod ( System.DateTime baseMoment, TimeUnit periodUnit, long periodDuration = 1, TimeUnit offsetUnit = null, long offsetCount = 1, ITimeCalendar calendar = null ) : ITimePeriod
baseMoment System.DateTime
periodUnit TimeUnit
periodDuration long
offsetUnit TimeUnit
offsetCount long
calendar ITimeCalendar
return ITimePeriod

CalcTimePeriod() public static method

public static CalcTimePeriod ( TimeUnit periodUnit, long periodDuration = 1, TimeUnit offsetUnit = null, long offsetCount = 1, ITimeCalendar calendar = null ) : ITimePeriod
periodUnit TimeUnit
periodDuration long
offsetUnit TimeUnit
offsetCount long
calendar ITimeCalendar
return ITimePeriod