C# Class NExtends.Primitives.DateTimeExtensions

Afficher le fichier Open project: LuccaSA/NExtends

Méthodes publiques

Свойство Type Description
dayText String[]

Méthodes publiques

Méthode Description
AddDaysSafe ( this date, double value ) : System.DateTime
DayText ( int day ) : String
FirstOfMonth ( this d ) : System.DateTime
GetDifferenceInFullMonths ( this firstDate, System.DateTime secondDate ) : int
GetDifferenceInFullYearsWith ( this firstDate, System.DateTime secondDate ) : int
IsFirstOfMonth ( System.DateTime d ) : bool
IsLastOfMonth ( System.DateTime d ) : bool
LastOfMonth ( this d ) : System.DateTime
Max ( this a, System.DateTime b ) : System.DateTime
Min ( this a, System.DateTime b ) : System.DateTime
Minutes ( this d ) : int

Minutes écoulées depuis minuit pour cette date : entre 0 et 1440

Next ( this d, DayOfWeek day ) : System.DateTime
NextOrCurrent ( this d, DayOfWeek day ) : System.DateTime
Previous ( this d, DayOfWeek day ) : System.DateTime
PreviousOrCurrent ( this d, DayOfWeek day ) : System.DateTime
ToFrenchLongText ( this d ) : String
ToFrenchLongTextHeure ( this d ) : String
ToHttpDate ( this d ) : string
ToISO ( this d ) : String
ToISOz ( this d ) : String

Prend en charge le TimeZone envoyé par le client embed dans la date/time exprimée en UTC

ToJQuery ( this d ) : String
ToJSONDate ( this d ) : String
ToJSONDateTime ( this d ) : String
ToMidnightTimeIfEmpty ( this date ) : System.DateTime

Permet d'affecter un time à 23:59:59.999 à une date qui n'a pas de time

ToShortDate ( this d ) : String

new DateTime(2008, 8, 29, 19, 27, 15) ==> août 2008

ToShortDateTimeString ( this d ) : String
ToShortFrenchTimeString ( this d ) : String
ToShortISO ( this d ) : String
ToShortUpperDay ( this d ) : String
ToShortUpperMonth ( this d ) : String
toShortUserFormat ( this date, int format ) : String
weekNumber ( this d ) : int

Private Methods

Méthode Description
LookFor ( System.DateTime start, DayOfWeek day, int step ) : System.DateTime
ToJSON ( this d ) : String

Method Details

AddDaysSafe() public static méthode

public static AddDaysSafe ( this date, double value ) : System.DateTime
date this
value double
Résultat System.DateTime

DayText() public static méthode

public static DayText ( int day ) : String
day int
Résultat String

FirstOfMonth() public static méthode

public static FirstOfMonth ( this d ) : System.DateTime
d this
Résultat System.DateTime

GetDifferenceInFullMonths() public static méthode

public static GetDifferenceInFullMonths ( this firstDate, System.DateTime secondDate ) : int
firstDate this
secondDate System.DateTime
Résultat int

GetDifferenceInFullYearsWith() public static méthode

public static GetDifferenceInFullYearsWith ( this firstDate, System.DateTime secondDate ) : int
firstDate this
secondDate System.DateTime
Résultat int

IsFirstOfMonth() public static méthode

public static IsFirstOfMonth ( System.DateTime d ) : bool
d System.DateTime
Résultat bool

IsLastOfMonth() public static méthode

public static IsLastOfMonth ( System.DateTime d ) : bool
d System.DateTime
Résultat bool

LastOfMonth() public static méthode

public static LastOfMonth ( this d ) : System.DateTime
d this
Résultat System.DateTime

Max() public static méthode

public static Max ( this a, System.DateTime b ) : System.DateTime
a this
b System.DateTime
Résultat System.DateTime

Min() public static méthode

public static Min ( this a, System.DateTime b ) : System.DateTime
a this
b System.DateTime
Résultat System.DateTime

Minutes() public static méthode

Minutes écoulées depuis minuit pour cette date : entre 0 et 1440
public static Minutes ( this d ) : int
d this
Résultat int

Next() public static méthode

public static Next ( this d, DayOfWeek day ) : System.DateTime
d this
day DayOfWeek
Résultat System.DateTime

NextOrCurrent() public static méthode

public static NextOrCurrent ( this d, DayOfWeek day ) : System.DateTime
d this
day DayOfWeek
Résultat System.DateTime

Previous() public static méthode

public static Previous ( this d, DayOfWeek day ) : System.DateTime
d this
day DayOfWeek
Résultat System.DateTime

PreviousOrCurrent() public static méthode

public static PreviousOrCurrent ( this d, DayOfWeek day ) : System.DateTime
d this
day DayOfWeek
Résultat System.DateTime

ToFrenchLongText() public static méthode

public static ToFrenchLongText ( this d ) : String
d this
Résultat String

ToFrenchLongTextHeure() public static méthode

public static ToFrenchLongTextHeure ( this d ) : String
d this
Résultat String

ToHttpDate() public static méthode

public static ToHttpDate ( this d ) : string
d this
Résultat string

ToISO() public static méthode

public static ToISO ( this d ) : String
d this
Résultat String

ToISOz() public static méthode

Prend en charge le TimeZone envoyé par le client embed dans la date/time exprimée en UTC
public static ToISOz ( this d ) : String
d this
Résultat String

ToJQuery() public static méthode

public static ToJQuery ( this d ) : String
d this
Résultat String

ToJSONDate() public static méthode

public static ToJSONDate ( this d ) : String
d this
Résultat String

ToJSONDateTime() public static méthode

public static ToJSONDateTime ( this d ) : String
d this
Résultat String

ToMidnightTimeIfEmpty() public static méthode

Permet d'affecter un time à 23:59:59.999 à une date qui n'a pas de time
public static ToMidnightTimeIfEmpty ( this date ) : System.DateTime
date this
Résultat System.DateTime

ToShortDate() public static méthode

new DateTime(2008, 8, 29, 19, 27, 15) ==> août 2008
public static ToShortDate ( this d ) : String
d this
Résultat String

ToShortDateTimeString() public static méthode

public static ToShortDateTimeString ( this d ) : String
d this
Résultat String

ToShortFrenchTimeString() public static méthode

public static ToShortFrenchTimeString ( this d ) : String
d this
Résultat String

ToShortISO() public static méthode

public static ToShortISO ( this d ) : String
d this
Résultat String

ToShortUpperDay() public static méthode

public static ToShortUpperDay ( this d ) : String
d this
Résultat String

ToShortUpperMonth() public static méthode

public static ToShortUpperMonth ( this d ) : String
d this
Résultat String

toShortUserFormat() public static méthode

public static toShortUserFormat ( this date, int format ) : String
date this
format int
Résultat String

weekNumber() public static méthode

public static weekNumber ( this d ) : int
d this
Résultat int

Property Details

dayText public_oe static_oe property

public static String[] dayText
Résultat String[]