C# Class WinRTXamlToolkit.Controls.DateTimeHelper

Inherited code: Requires comment.
Afficher le fichier Open project: xyzzer/WinRTXamlToolkit

Méthodes publiques

Méthode Description
AddDays ( System.DateTime time, int days ) : DateTime?

Inherited code: Requires comment.

AddMonths ( System.DateTime time, int months ) : DateTime?

Inherited code: Requires comment.

AddYears ( System.DateTime time, int years ) : DateTime?

Inherited code: Requires comment.

CompareDays ( System.DateTime dt1, System.DateTime dt2 ) : int

Inherited code: Requires comment.

CompareYearMonth ( System.DateTime dt1, System.DateTime dt2 ) : int

Inherited code: Requires comment.

DecadeOfDate ( System.DateTime date ) : int

Inherited code: Requires comment.

DiscardDayTime ( System.DateTime d ) : System.DateTime

Inherited code: Requires comment.

DiscardTime ( System.DateTime d ) : DateTime?

Inherited code: Requires comment.

EndOfDecade ( System.DateTime date ) : int

Inherited code: Requires comment.

GetCurrentDateFormat ( ) : DateTimeFormatInfo

Inherited code: Requires comment.

InRange ( System.DateTime date, CalendarDateRange range ) : bool

Returns if the date is included in the range.

ToYearMonthPatternString ( System.DateTime date ) : string

Gets a localized string for the specified date using the YearMonthPattern format.

ToYearString ( System.DateTime date ) : string

Gets a localized string for the specified date's year.

Method Details

AddDays() public static méthode

Inherited code: Requires comment.
public static AddDays ( System.DateTime time, int days ) : DateTime?
time System.DateTime Inherited code: Requires comment 1.
days int Inherited code: Requires comment 2.
Résultat DateTime?

AddMonths() public static méthode

Inherited code: Requires comment.
public static AddMonths ( System.DateTime time, int months ) : DateTime?
time System.DateTime Inherited code: Requires comment 1.
months int Inherited code: Requires comment 2.
Résultat DateTime?

AddYears() public static méthode

Inherited code: Requires comment.
public static AddYears ( System.DateTime time, int years ) : DateTime?
time System.DateTime Inherited code: Requires comment 1.
years int Inherited code: Requires comment 2.
Résultat DateTime?

CompareDays() public static méthode

Inherited code: Requires comment.
public static CompareDays ( System.DateTime dt1, System.DateTime dt2 ) : int
dt1 System.DateTime Inherited code: Requires comment 1.
dt2 System.DateTime Inherited code: Requires comment 2.
Résultat int

CompareYearMonth() public static méthode

Inherited code: Requires comment.
public static CompareYearMonth ( System.DateTime dt1, System.DateTime dt2 ) : int
dt1 System.DateTime Inherited code: Requires comment 1.
dt2 System.DateTime Inherited code: Requires comment 2.
Résultat int

DecadeOfDate() public static méthode

Inherited code: Requires comment.
public static DecadeOfDate ( System.DateTime date ) : int
date System.DateTime Inherited code: Requires comment 1.
Résultat int

DiscardDayTime() public static méthode

Inherited code: Requires comment.
public static DiscardDayTime ( System.DateTime d ) : System.DateTime
d System.DateTime Inherited code: Requires comment 1.
Résultat System.DateTime

DiscardTime() public static méthode

Inherited code: Requires comment.
public static DiscardTime ( System.DateTime d ) : DateTime?
d System.DateTime Inherited code: Requires comment 1.
Résultat DateTime?

EndOfDecade() public static méthode

Inherited code: Requires comment.
public static EndOfDecade ( System.DateTime date ) : int
date System.DateTime Inherited code: Requires comment 1.
Résultat int

GetCurrentDateFormat() public static méthode

Inherited code: Requires comment.
public static GetCurrentDateFormat ( ) : DateTimeFormatInfo
Résultat System.Globalization.DateTimeFormatInfo

InRange() public static méthode

Returns if the date is included in the range.
public static InRange ( System.DateTime date, CalendarDateRange range ) : bool
date System.DateTime Inherited code: Requires comment 1.
range CalendarDateRange Inherited code: Requires comment 2.
Résultat bool

ToYearMonthPatternString() public static méthode

Gets a localized string for the specified date using the YearMonthPattern format.
public static ToYearMonthPatternString ( System.DateTime date ) : string
date System.DateTime Date to convert.
Résultat string

ToYearString() public static méthode

Gets a localized string for the specified date's year.
public static ToYearString ( System.DateTime date ) : string
date System.DateTime Date to convert.
Résultat string