C# 클래스 Itenso.TimePeriodDemo.CommunitySamples

파일 보기 프로젝트 열기: jwg4/date-difference

공개 메소드들

메소드 설명
AddBusinessDays1 ( System.DateTime startDate, int noOfBusinessDays ) : System.DateTime
AddBusinessDays2 ( System.DateTime startDate, int noOfBusinessDays ) : System.DateTime
AddBusinessDays3 ( System.DateTime startDate, int noOfBusinessDays ) : System.DateTime
CalcWorkingPeriod ( System.DateTime start, System.DateTime end, ITimePeriodCollection excludePeriods = null ) : System.TimeSpan
CalculateBusinessHours ( CalendarTimeRange testPeriod, ITimePeriodCollection holidays = null ) : double
CountMonthDays ( System.DateTime start, System.DateTime end ) : int>.Dictionary
CountWorkingDays ( System.DateTime start, System.DateTime end, IList workingDays ) : int
GetDayOfLastQuarterMonth ( DayOfWeek dayOfWeek, int count ) : DateTime?
GetTimeSpanDescription ( System.DateTime moment, System.TimeSpan timeSpan, int precision = int.MaxValue ) : string
GetTimeSpanDescription ( System.TimeSpan timeSpan, int precision = int.MaxValue ) : string
IsWeekRecuringDay ( System.DateTime start, System.DateTime test, int recuringInterval ) : bool
NetworkDays ( System.DateTime start, System.DateTime end, IEnumerable holidays = null, ITimePeriodCollection holidayPeriods = null ) : double
PrintAge ( System.DateTime birthDate, System.DateTime moment ) : void
ShowMonthNameInfo ( DateTimeFormatInfo info, int month ) : void

비공개 메소드들

메소드 설명
AddBusinessDaysSample ( ) : void
AddBusinessDaysSample2 ( ) : void
AddWeekDaySample ( ) : void
BusinessHoursSample1 ( ) : void
BusinessHoursSample2 ( ) : void
CalcInvolvedWeekCount ( System.DateTime date1, System.DateTime date2, DayOfWeek firstDayOfWeek ) : int
CalcTargetMoment ( ICollection periods, System.TimeSpan duration ) : DateTime?
CalcTargetMoment2 ( ICollection periods, System.TimeSpan duration ) : DateTime?
CalcWeekCount ( System.DateTime startDateTime, System.DateTime endDateTime ) : int
CalculateAgeSamples ( ) : void
CalculateBusinessHours ( ITimePeriod timePeriod ) : double
CalculateBusinessHoursSample ( ) : void
CalendarDateDiffDayHourSample ( ) : void
CalendarDateDiffHourSample ( ) : void
CalendarWeekSample ( ) : void
CheckDateBetweenDatesSample ( ) : void
CheckDayOfLastQuarterMonth ( ) : void
CombinedPeriodsSample ( ) : void
CommonIntersectionSample ( ) : void
CountDaysByMonthSample ( ) : void
CountWorkingDaysSample ( ) : void
CustomWeekSample ( ) : void
DateTimeOffsetSample ( ) : void
DateTimeSetSample ( ) : void
DaysOfWeekSample ( ) : void
DurationDescriptionSample ( ) : void
FindRemainigYearFridaysSample ( ) : void
FiscalYearWeekCountSample ( ) : void
GetCommonIntersection ( ITimePeriodCollection periods ) : ITimePeriod
GetDayOfCurrentWeek ( DayOfWeek dayOfWeek ) : System.DateTime
GetDayOfCurrentWeek ( ) : void
InvolvedWeekCount ( ) : void
IsLastDayOfMonth ( System.DateTime test ) : bool
IsLastWorkingDayOfMonth ( System.DateTime test ) : bool
LastDayInMonthSample ( ) : void
LastDayOfMonth ( int year, int month ) : System.DateTime
MonthNameSample ( ) : void
NetworkDaysSample ( ) : void
QuarterSample ( ) : void
TimeFormatterSample ( ) : void
TimeGapPrecisionSample ( ) : void
TimeLineMomentSample ( ) : void
TimeLinePeriodsSample ( ) : void
TimePeriodSubtractorSample ( ) : void
UserFriendlyTimeSpanSample ( ) : void
WeekCountSample ( ) : void
WeekCultureSample ( ) : void
WeekDaysSample ( ) : void
WeekRepeatSample ( ) : void
WeekStartEndSample ( ) : void
WorkingHourSum ( ) : void
WorkingPeriodSample ( ) : void
YearDiff ( System.DateTime date1, System.DateTime date2 ) : int
YearDiff ( System.DateTime date1, System.DateTime date2, Calendar calendar ) : int

메소드 상세

AddBusinessDays1() 공개 메소드

public AddBusinessDays1 ( System.DateTime startDate, int noOfBusinessDays ) : System.DateTime
startDate System.DateTime
noOfBusinessDays int
리턴 System.DateTime

AddBusinessDays2() 공개 메소드

public AddBusinessDays2 ( System.DateTime startDate, int noOfBusinessDays ) : System.DateTime
startDate System.DateTime
noOfBusinessDays int
리턴 System.DateTime

AddBusinessDays3() 공개 메소드

public AddBusinessDays3 ( System.DateTime startDate, int noOfBusinessDays ) : System.DateTime
startDate System.DateTime
noOfBusinessDays int
리턴 System.DateTime

CalcWorkingPeriod() 공개 메소드

public CalcWorkingPeriod ( System.DateTime start, System.DateTime end, ITimePeriodCollection excludePeriods = null ) : System.TimeSpan
start System.DateTime
end System.DateTime
excludePeriods ITimePeriodCollection
리턴 System.TimeSpan

CalculateBusinessHours() 공개 메소드

public CalculateBusinessHours ( CalendarTimeRange testPeriod, ITimePeriodCollection holidays = null ) : double
testPeriod Itenso.TimePeriod.CalendarTimeRange
holidays ITimePeriodCollection
리턴 double

CountMonthDays() 공개 메소드

public CountMonthDays ( System.DateTime start, System.DateTime end ) : int>.Dictionary
start System.DateTime
end System.DateTime
리턴 int>.Dictionary

CountWorkingDays() 공개 메소드

public CountWorkingDays ( System.DateTime start, System.DateTime end, IList workingDays ) : int
start System.DateTime
end System.DateTime
workingDays IList
리턴 int

GetDayOfLastQuarterMonth() 공개 메소드

public GetDayOfLastQuarterMonth ( DayOfWeek dayOfWeek, int count ) : DateTime?
dayOfWeek DayOfWeek
count int
리턴 DateTime?

GetTimeSpanDescription() 공개 메소드

public GetTimeSpanDescription ( System.DateTime moment, System.TimeSpan timeSpan, int precision = int.MaxValue ) : string
moment System.DateTime
timeSpan System.TimeSpan
precision int
리턴 string

GetTimeSpanDescription() 공개 메소드

public GetTimeSpanDescription ( System.TimeSpan timeSpan, int precision = int.MaxValue ) : string
timeSpan System.TimeSpan
precision int
리턴 string

IsWeekRecuringDay() 공개 메소드

public IsWeekRecuringDay ( System.DateTime start, System.DateTime test, int recuringInterval ) : bool
start System.DateTime
test System.DateTime
recuringInterval int
리턴 bool

NetworkDays() 공개 메소드

public NetworkDays ( System.DateTime start, System.DateTime end, IEnumerable holidays = null, ITimePeriodCollection holidayPeriods = null ) : double
start System.DateTime
end System.DateTime
holidays IEnumerable
holidayPeriods ITimePeriodCollection
리턴 double

PrintAge() 공개 메소드

public PrintAge ( System.DateTime birthDate, System.DateTime moment ) : void
birthDate System.DateTime
moment System.DateTime
리턴 void

ShowMonthNameInfo() 공개 메소드

public ShowMonthNameInfo ( DateTimeFormatInfo info, int month ) : void
info System.Globalization.DateTimeFormatInfo
month int
리턴 void