C# Class System.Globalization.Calendar

Show file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Property Type Description
Add DateTime
CheckAddResult void
Clone Object
GetFirstDayWeekOfYear int
GetLeapMonth int
GetLeapMonth int
GetSystemTwoDigitYearSetting int
GetWeekOfYearFullDays int
IsValidDay bool
IsValidMonth bool
IsValidYear bool
ReadOnly Calendar
SetReadOnlyState void
TimeToTicks long
TryToDateTime Boolean
VerifyWritable void
nativeGetTwoDigitYearMax int

Public Methods

Method Description
AddDays ( DateTime time, int days ) : DateTime
AddHours ( DateTime time, int hours ) : DateTime
AddMilliseconds ( DateTime time, double milliseconds ) : DateTime
AddMinutes ( DateTime time, int minutes ) : DateTime
AddMonths ( DateTime time, int months ) : DateTime
AddSeconds ( DateTime time, int seconds ) : DateTime
AddWeeks ( DateTime time, int weeks ) : DateTime
AddYears ( DateTime time, int years ) : DateTime
GetDayOfMonth ( DateTime time ) : int
GetDayOfWeek ( DateTime time ) : DayOfWeek
GetDayOfYear ( DateTime time ) : int
GetDaysInMonth ( int year, int month ) : int
GetDaysInMonth ( int year, int month, int era ) : int
GetDaysInYear ( int year ) : int
GetDaysInYear ( int year, int era ) : int
GetEra ( DateTime time ) : int
GetHour ( DateTime time ) : int
GetMilliseconds ( DateTime time ) : double
GetMinute ( DateTime time ) : int
GetMonth ( DateTime time ) : int
GetMonthsInYear ( int year ) : int
GetMonthsInYear ( int year, int era ) : int
GetSecond ( DateTime time ) : int
GetWeekOfYear ( DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek ) : int
GetYear ( DateTime time ) : int
IsLeapDay ( int year, int month, int day ) : bool
IsLeapDay ( int year, int month, int day, int era ) : bool
IsLeapMonth ( int year, int month ) : bool
IsLeapMonth ( int year, int month, int era ) : bool
IsLeapYear ( int year ) : bool
IsLeapYear ( int year, int era ) : bool
ToDateTime ( int year, int month, int day, int hour, int minute, int second, int millisecond ) : DateTime
ToDateTime ( int year, int month, int day, int hour, int minute, int second, int millisecond, int era ) : DateTime
ToFourDigitYear ( int year ) : int

Protected Methods

Method Description
Calendar ( ) : System

Private Methods

Method Description
Add ( DateTime time, double value, int scale ) : DateTime
CheckAddResult ( long ticks, DateTime minValue, DateTime maxValue ) : void
Clone ( ) : Object
GetFirstDayWeekOfYear ( DateTime time, int firstDayOfWeek ) : int
GetLeapMonth ( int year ) : int
GetLeapMonth ( int year, int era ) : int
GetSystemTwoDigitYearSetting ( int CalID, int defaultYearValue ) : int
GetWeekOfYearFullDays ( DateTime time, CalendarWeekRule rule, int firstDayOfWeek, int fullDays ) : int
IsValidDay ( int year, int month, int day, int era ) : bool
IsValidMonth ( int year, int month, int era ) : bool
IsValidYear ( int year, int era ) : bool
ReadOnly ( Calendar calendar ) : Calendar
SetReadOnlyState ( bool readOnly ) : void
TimeToTicks ( int hour, int minute, int second, int millisecond ) : long
TryToDateTime ( int year, int month, int day, int hour, int minute, int second, int millisecond, int era, DateTime &result ) : Boolean
VerifyWritable ( ) : void
nativeGetTwoDigitYearMax ( int calID ) : int

Method Details

AddDays() public method

public AddDays ( DateTime time, int days ) : DateTime
time DateTime
days int
return DateTime

AddHours() public method

public AddHours ( DateTime time, int hours ) : DateTime
time DateTime
hours int
return DateTime

AddMilliseconds() public method

public AddMilliseconds ( DateTime time, double milliseconds ) : DateTime
time DateTime
milliseconds double
return DateTime

AddMinutes() public method

public AddMinutes ( DateTime time, int minutes ) : DateTime
time DateTime
minutes int
return DateTime

AddMonths() public abstract method

public abstract AddMonths ( DateTime time, int months ) : DateTime
time DateTime
months int
return DateTime

AddSeconds() public method

public AddSeconds ( DateTime time, int seconds ) : DateTime
time DateTime
seconds int
return DateTime

AddWeeks() public method

public AddWeeks ( DateTime time, int weeks ) : DateTime
time DateTime
weeks int
return DateTime

AddYears() public abstract method

public abstract AddYears ( DateTime time, int years ) : DateTime
time DateTime
years int
return DateTime

Calendar() protected method

protected Calendar ( ) : System
return System

GetDayOfMonth() public abstract method

public abstract GetDayOfMonth ( DateTime time ) : int
time DateTime
return int

GetDayOfWeek() public abstract method

public abstract GetDayOfWeek ( DateTime time ) : DayOfWeek
time DateTime
return DayOfWeek

GetDayOfYear() public abstract method

public abstract GetDayOfYear ( DateTime time ) : int
time DateTime
return int

GetDaysInMonth() public method

public GetDaysInMonth ( int year, int month ) : int
year int
month int
return int

GetDaysInMonth() public abstract method

public abstract GetDaysInMonth ( int year, int month, int era ) : int
year int
month int
era int
return int

GetDaysInYear() public method

public GetDaysInYear ( int year ) : int
year int
return int

GetDaysInYear() public abstract method

public abstract GetDaysInYear ( int year, int era ) : int
year int
era int
return int

GetEra() public abstract method

public abstract GetEra ( DateTime time ) : int
time DateTime
return int

GetHour() public method

public GetHour ( DateTime time ) : int
time DateTime
return int

GetMilliseconds() public method

public GetMilliseconds ( DateTime time ) : double
time DateTime
return double

GetMinute() public method

public GetMinute ( DateTime time ) : int
time DateTime
return int

GetMonth() public abstract method

public abstract GetMonth ( DateTime time ) : int
time DateTime
return int

GetMonthsInYear() public method

public GetMonthsInYear ( int year ) : int
year int
return int

GetMonthsInYear() public abstract method

public abstract GetMonthsInYear ( int year, int era ) : int
year int
era int
return int

GetSecond() public method

public GetSecond ( DateTime time ) : int
time DateTime
return int

GetWeekOfYear() public method

public GetWeekOfYear ( DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek ) : int
time DateTime
rule CalendarWeekRule
firstDayOfWeek DayOfWeek
return int

GetYear() public abstract method

public abstract GetYear ( DateTime time ) : int
time DateTime
return int

IsLeapDay() public method

public IsLeapDay ( int year, int month, int day ) : bool
year int
month int
day int
return bool

IsLeapDay() public abstract method

public abstract IsLeapDay ( int year, int month, int day, int era ) : bool
year int
month int
day int
era int
return bool

IsLeapMonth() public method

public IsLeapMonth ( int year, int month ) : bool
year int
month int
return bool

IsLeapMonth() public abstract method

public abstract IsLeapMonth ( int year, int month, int era ) : bool
year int
month int
era int
return bool

IsLeapYear() public method

public IsLeapYear ( int year ) : bool
year int
return bool

IsLeapYear() public abstract method

public abstract IsLeapYear ( int year, int era ) : bool
year int
era int
return bool

ToDateTime() public method

public ToDateTime ( int year, int month, int day, int hour, int minute, int second, int millisecond ) : DateTime
year int
month int
day int
hour int
minute int
second int
millisecond int
return DateTime

ToDateTime() public abstract method

public abstract ToDateTime ( int year, int month, int day, int hour, int minute, int second, int millisecond, int era ) : DateTime
year int
month int
day int
hour int
minute int
second int
millisecond int
era int
return DateTime

ToFourDigitYear() public method

public ToFourDigitYear ( int year ) : int
year int
return int