C# Class System.Globalization.Calendar

Afficher le fichier Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Calendar ( ) : System

Private Methods

Méthode 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 méthode

public AddDays ( DateTime time, int days ) : DateTime
time DateTime
days int
Résultat DateTime

AddHours() public méthode

public AddHours ( DateTime time, int hours ) : DateTime
time DateTime
hours int
Résultat DateTime

AddMilliseconds() public méthode

public AddMilliseconds ( DateTime time, double milliseconds ) : DateTime
time DateTime
milliseconds double
Résultat DateTime

AddMinutes() public méthode

public AddMinutes ( DateTime time, int minutes ) : DateTime
time DateTime
minutes int
Résultat DateTime

AddMonths() public abstract méthode

public abstract AddMonths ( DateTime time, int months ) : DateTime
time DateTime
months int
Résultat DateTime

AddSeconds() public méthode

public AddSeconds ( DateTime time, int seconds ) : DateTime
time DateTime
seconds int
Résultat DateTime

AddWeeks() public méthode

public AddWeeks ( DateTime time, int weeks ) : DateTime
time DateTime
weeks int
Résultat DateTime

AddYears() public abstract méthode

public abstract AddYears ( DateTime time, int years ) : DateTime
time DateTime
years int
Résultat DateTime

Calendar() protected méthode

protected Calendar ( ) : System
Résultat System

GetDayOfMonth() public abstract méthode

public abstract GetDayOfMonth ( DateTime time ) : int
time DateTime
Résultat int

GetDayOfWeek() public abstract méthode

public abstract GetDayOfWeek ( DateTime time ) : DayOfWeek
time DateTime
Résultat DayOfWeek

GetDayOfYear() public abstract méthode

public abstract GetDayOfYear ( DateTime time ) : int
time DateTime
Résultat int

GetDaysInMonth() public méthode

public GetDaysInMonth ( int year, int month ) : int
year int
month int
Résultat int

GetDaysInMonth() public abstract méthode

public abstract GetDaysInMonth ( int year, int month, int era ) : int
year int
month int
era int
Résultat int

GetDaysInYear() public méthode

public GetDaysInYear ( int year ) : int
year int
Résultat int

GetDaysInYear() public abstract méthode

public abstract GetDaysInYear ( int year, int era ) : int
year int
era int
Résultat int

GetEra() public abstract méthode

public abstract GetEra ( DateTime time ) : int
time DateTime
Résultat int

GetHour() public méthode

public GetHour ( DateTime time ) : int
time DateTime
Résultat int

GetMilliseconds() public méthode

public GetMilliseconds ( DateTime time ) : double
time DateTime
Résultat double

GetMinute() public méthode

public GetMinute ( DateTime time ) : int
time DateTime
Résultat int

GetMonth() public abstract méthode

public abstract GetMonth ( DateTime time ) : int
time DateTime
Résultat int

GetMonthsInYear() public méthode

public GetMonthsInYear ( int year ) : int
year int
Résultat int

GetMonthsInYear() public abstract méthode

public abstract GetMonthsInYear ( int year, int era ) : int
year int
era int
Résultat int

GetSecond() public méthode

public GetSecond ( DateTime time ) : int
time DateTime
Résultat int

GetWeekOfYear() public méthode

public GetWeekOfYear ( DateTime time, CalendarWeekRule rule, DayOfWeek firstDayOfWeek ) : int
time DateTime
rule CalendarWeekRule
firstDayOfWeek DayOfWeek
Résultat int

GetYear() public abstract méthode

public abstract GetYear ( DateTime time ) : int
time DateTime
Résultat int

IsLeapDay() public méthode

public IsLeapDay ( int year, int month, int day ) : bool
year int
month int
day int
Résultat bool

IsLeapDay() public abstract méthode

public abstract IsLeapDay ( int year, int month, int day, int era ) : bool
year int
month int
day int
era int
Résultat bool

IsLeapMonth() public méthode

public IsLeapMonth ( int year, int month ) : bool
year int
month int
Résultat bool

IsLeapMonth() public abstract méthode

public abstract IsLeapMonth ( int year, int month, int era ) : bool
year int
month int
era int
Résultat bool

IsLeapYear() public méthode

public IsLeapYear ( int year ) : bool
year int
Résultat bool

IsLeapYear() public abstract méthode

public abstract IsLeapYear ( int year, int era ) : bool
year int
era int
Résultat bool

ToDateTime() public méthode

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
Résultat DateTime

ToDateTime() public abstract méthode

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
Résultat DateTime

ToFourDigitYear() public méthode

public ToFourDigitYear ( int year ) : int
year int
Résultat int