C# 클래스 Itenso.TimePeriod.TimeTool

파일 보기 프로젝트 열기: jwg4/date-difference 1 사용 예제들

공개 메소드들

메소드 설명
AddDays ( DayOfWeek day, int days ) : DayOfWeek
AddHalfyear ( YearHalfyear startHalfyear, int count, int &year, YearHalfyear &halfyear ) : void
AddHalfyear ( int startYear, YearHalfyear startHalfyear, int count, int &year, YearHalfyear &halfyear ) : void
AddMonth ( YearMonth startMonth, int count, int &year, YearMonth &month ) : void
AddMonth ( int startYear, YearMonth startMonth, int count, int &year, YearMonth &month ) : void
AddQuarter ( YearQuarter startQuarter, int count, int &year, YearQuarter &quarter ) : void
AddQuarter ( int startYear, YearQuarter startQuarter, int count, int &year, YearQuarter &quarter ) : void
DayStart ( System.DateTime dateTime ) : System.DateTime
GetDate ( System.DateTime dateTime ) : System.DateTime
GetDaysInMonth ( int year, int month ) : int
GetHalfyearOfMonth ( YearMonth yearMonth ) : YearHalfyear
GetHalfyearOfMonth ( YearMonth yearBaseMonth, YearMonth yearMonth ) : YearHalfyear
GetMonthsOfHalfyear ( YearHalfyear yearHalfyear ) : YearMonth[]
GetMonthsOfQuarter ( YearQuarter yearQuarter ) : YearMonth[]
GetQuarterOfMonth ( YearMonth yearMonth ) : YearQuarter
GetQuarterOfMonth ( YearMonth yearBaseMonth, YearMonth yearMonth ) : YearQuarter
GetStartOfWeek ( System.DateTime time, DayOfWeek firstDayOfWeek ) : System.DateTime
GetStartOfYearWeek ( int year, int weekOfYear, CultureInfo culture, CalendarWeekRule weekRule, DayOfWeek firstDayOfWeek, YearWeekType yearWeekType ) : System.DateTime
GetStartOfYearWeek ( int year, int weekOfYear, CultureInfo culture, YearWeekType yearWeekType ) : System.DateTime
GetWeekOfYear ( System.DateTime moment, CultureInfo culture, CalendarWeekRule weekRule, DayOfWeek firstDayOfWeek, YearWeekType yearWeekType, int &year, int &weekOfYear ) : void
GetWeekOfYear ( System.DateTime moment, CultureInfo culture, YearWeekType yearWeekType, int &year, int &weekOfYear ) : void
GetWeeksOfYear ( int year, CultureInfo culture, CalendarWeekRule weekRule, DayOfWeek firstDayOfWeek, YearWeekType yearWeekType ) : int
GetWeeksOfYear ( int year, CultureInfo culture, YearWeekType yearWeekType ) : int
GetYearOf ( YearMonth yearBaseMonth, System.DateTime moment ) : int
GetYearOf ( YearMonth yearBaseMonth, int year, int month ) : int
HasTimeOfDay ( System.DateTime dateTime ) : bool
NextDay ( DayOfWeek day ) : DayOfWeek
NextHalfyear ( YearHalfyear startHalfyear, int &year, YearHalfyear &halfyear ) : void
NextMonth ( YearMonth startMonth, int &year, YearMonth &month ) : void
NextQuarter ( YearQuarter startQuarter, int &year, YearQuarter &quarter ) : void
PreviousDay ( DayOfWeek day ) : DayOfWeek
PreviousHalfyear ( YearHalfyear startHalfyear, int &year, YearHalfyear &halfyear ) : void
PreviousMonth ( YearMonth startMonth, int &year, YearMonth &month ) : void
PreviousQuarter ( YearQuarter startQuarter, int &year, YearQuarter &quarter ) : void
SetDate ( System.DateTime from, System.DateTime to ) : System.DateTime
SetDate ( System.DateTime from, int year, int month = 1, int day = 1 ) : System.DateTime
SetTimeOfDay ( System.DateTime from, System.DateTime to ) : System.DateTime
SetTimeOfDay ( System.DateTime from, int hour, int minute, int second, int millisecond ) : System.DateTime

메소드 상세

AddDays() 공개 정적인 메소드

public static AddDays ( DayOfWeek day, int days ) : DayOfWeek
day DayOfWeek
days int
리턴 DayOfWeek

AddHalfyear() 공개 정적인 메소드

public static AddHalfyear ( YearHalfyear startHalfyear, int count, int &year, YearHalfyear &halfyear ) : void
startHalfyear YearHalfyear
count int
year int
halfyear YearHalfyear
리턴 void

AddHalfyear() 공개 정적인 메소드

public static AddHalfyear ( int startYear, YearHalfyear startHalfyear, int count, int &year, YearHalfyear &halfyear ) : void
startYear int
startHalfyear YearHalfyear
count int
year int
halfyear YearHalfyear
리턴 void

AddMonth() 공개 정적인 메소드

public static AddMonth ( YearMonth startMonth, int count, int &year, YearMonth &month ) : void
startMonth YearMonth
count int
year int
month YearMonth
리턴 void

AddMonth() 공개 정적인 메소드

public static AddMonth ( int startYear, YearMonth startMonth, int count, int &year, YearMonth &month ) : void
startYear int
startMonth YearMonth
count int
year int
month YearMonth
리턴 void

AddQuarter() 공개 정적인 메소드

public static AddQuarter ( YearQuarter startQuarter, int count, int &year, YearQuarter &quarter ) : void
startQuarter YearQuarter
count int
year int
quarter YearQuarter
리턴 void

AddQuarter() 공개 정적인 메소드

public static AddQuarter ( int startYear, YearQuarter startQuarter, int count, int &year, YearQuarter &quarter ) : void
startYear int
startQuarter YearQuarter
count int
year int
quarter YearQuarter
리턴 void

DayStart() 공개 정적인 메소드

public static DayStart ( System.DateTime dateTime ) : System.DateTime
dateTime System.DateTime
리턴 System.DateTime

GetDate() 공개 정적인 메소드

public static GetDate ( System.DateTime dateTime ) : System.DateTime
dateTime System.DateTime
리턴 System.DateTime

GetDaysInMonth() 공개 정적인 메소드

public static GetDaysInMonth ( int year, int month ) : int
year int
month int
리턴 int

GetHalfyearOfMonth() 공개 정적인 메소드

public static GetHalfyearOfMonth ( YearMonth yearMonth ) : YearHalfyear
yearMonth YearMonth
리턴 YearHalfyear

GetHalfyearOfMonth() 공개 정적인 메소드

public static GetHalfyearOfMonth ( YearMonth yearBaseMonth, YearMonth yearMonth ) : YearHalfyear
yearBaseMonth YearMonth
yearMonth YearMonth
리턴 YearHalfyear

GetMonthsOfHalfyear() 공개 정적인 메소드

public static GetMonthsOfHalfyear ( YearHalfyear yearHalfyear ) : YearMonth[]
yearHalfyear YearHalfyear
리턴 YearMonth[]

GetMonthsOfQuarter() 공개 정적인 메소드

public static GetMonthsOfQuarter ( YearQuarter yearQuarter ) : YearMonth[]
yearQuarter YearQuarter
리턴 YearMonth[]

GetQuarterOfMonth() 공개 정적인 메소드

public static GetQuarterOfMonth ( YearMonth yearMonth ) : YearQuarter
yearMonth YearMonth
리턴 YearQuarter

GetQuarterOfMonth() 공개 정적인 메소드

public static GetQuarterOfMonth ( YearMonth yearBaseMonth, YearMonth yearMonth ) : YearQuarter
yearBaseMonth YearMonth
yearMonth YearMonth
리턴 YearQuarter

GetStartOfWeek() 공개 정적인 메소드

public static GetStartOfWeek ( System.DateTime time, DayOfWeek firstDayOfWeek ) : System.DateTime
time System.DateTime
firstDayOfWeek DayOfWeek
리턴 System.DateTime

GetStartOfYearWeek() 공개 정적인 메소드

public static GetStartOfYearWeek ( int year, int weekOfYear, CultureInfo culture, CalendarWeekRule weekRule, DayOfWeek firstDayOfWeek, YearWeekType yearWeekType ) : System.DateTime
year int
weekOfYear int
culture System.Globalization.CultureInfo
weekRule CalendarWeekRule
firstDayOfWeek DayOfWeek
yearWeekType YearWeekType
리턴 System.DateTime

GetStartOfYearWeek() 공개 정적인 메소드

public static GetStartOfYearWeek ( int year, int weekOfYear, CultureInfo culture, YearWeekType yearWeekType ) : System.DateTime
year int
weekOfYear int
culture System.Globalization.CultureInfo
yearWeekType YearWeekType
리턴 System.DateTime

GetWeekOfYear() 공개 정적인 메소드

public static GetWeekOfYear ( System.DateTime moment, CultureInfo culture, CalendarWeekRule weekRule, DayOfWeek firstDayOfWeek, YearWeekType yearWeekType, int &year, int &weekOfYear ) : void
moment System.DateTime
culture System.Globalization.CultureInfo
weekRule CalendarWeekRule
firstDayOfWeek DayOfWeek
yearWeekType YearWeekType
year int
weekOfYear int
리턴 void

GetWeekOfYear() 공개 정적인 메소드

public static GetWeekOfYear ( System.DateTime moment, CultureInfo culture, YearWeekType yearWeekType, int &year, int &weekOfYear ) : void
moment System.DateTime
culture System.Globalization.CultureInfo
yearWeekType YearWeekType
year int
weekOfYear int
리턴 void

GetWeeksOfYear() 공개 정적인 메소드

public static GetWeeksOfYear ( int year, CultureInfo culture, CalendarWeekRule weekRule, DayOfWeek firstDayOfWeek, YearWeekType yearWeekType ) : int
year int
culture System.Globalization.CultureInfo
weekRule CalendarWeekRule
firstDayOfWeek DayOfWeek
yearWeekType YearWeekType
리턴 int

GetWeeksOfYear() 공개 정적인 메소드

public static GetWeeksOfYear ( int year, CultureInfo culture, YearWeekType yearWeekType ) : int
year int
culture System.Globalization.CultureInfo
yearWeekType YearWeekType
리턴 int

GetYearOf() 공개 정적인 메소드

public static GetYearOf ( YearMonth yearBaseMonth, System.DateTime moment ) : int
yearBaseMonth YearMonth
moment System.DateTime
리턴 int

GetYearOf() 공개 정적인 메소드

public static GetYearOf ( YearMonth yearBaseMonth, int year, int month ) : int
yearBaseMonth YearMonth
year int
month int
리턴 int

HasTimeOfDay() 공개 정적인 메소드

public static HasTimeOfDay ( System.DateTime dateTime ) : bool
dateTime System.DateTime
리턴 bool

NextDay() 공개 정적인 메소드

public static NextDay ( DayOfWeek day ) : DayOfWeek
day DayOfWeek
리턴 DayOfWeek

NextHalfyear() 공개 정적인 메소드

public static NextHalfyear ( YearHalfyear startHalfyear, int &year, YearHalfyear &halfyear ) : void
startHalfyear YearHalfyear
year int
halfyear YearHalfyear
리턴 void

NextMonth() 공개 정적인 메소드

public static NextMonth ( YearMonth startMonth, int &year, YearMonth &month ) : void
startMonth YearMonth
year int
month YearMonth
리턴 void

NextQuarter() 공개 정적인 메소드

public static NextQuarter ( YearQuarter startQuarter, int &year, YearQuarter &quarter ) : void
startQuarter YearQuarter
year int
quarter YearQuarter
리턴 void

PreviousDay() 공개 정적인 메소드

public static PreviousDay ( DayOfWeek day ) : DayOfWeek
day DayOfWeek
리턴 DayOfWeek

PreviousHalfyear() 공개 정적인 메소드

public static PreviousHalfyear ( YearHalfyear startHalfyear, int &year, YearHalfyear &halfyear ) : void
startHalfyear YearHalfyear
year int
halfyear YearHalfyear
리턴 void

PreviousMonth() 공개 정적인 메소드

public static PreviousMonth ( YearMonth startMonth, int &year, YearMonth &month ) : void
startMonth YearMonth
year int
month YearMonth
리턴 void

PreviousQuarter() 공개 정적인 메소드

public static PreviousQuarter ( YearQuarter startQuarter, int &year, YearQuarter &quarter ) : void
startQuarter YearQuarter
year int
quarter YearQuarter
리턴 void

SetDate() 공개 정적인 메소드

public static SetDate ( System.DateTime from, System.DateTime to ) : System.DateTime
from System.DateTime
to System.DateTime
리턴 System.DateTime

SetDate() 공개 정적인 메소드

public static SetDate ( System.DateTime from, int year, int month = 1, int day = 1 ) : System.DateTime
from System.DateTime
year int
month int
day int
리턴 System.DateTime

SetTimeOfDay() 공개 정적인 메소드

public static SetTimeOfDay ( System.DateTime from, System.DateTime to ) : System.DateTime
from System.DateTime
to System.DateTime
리턴 System.DateTime

SetTimeOfDay() 공개 정적인 메소드

public static SetTimeOfDay ( System.DateTime from, int hour, int minute, int second, int millisecond ) : System.DateTime
from System.DateTime
hour int
minute int
second int
millisecond int
리턴 System.DateTime