C# Класс NExtends.Primitives.DateTimeExtensions

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
dayText String[]

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
LookFor ( System.DateTime start, DayOfWeek day, int step ) : System.DateTime
ToJSON ( this d ) : String

Описание методов

AddDaysSafe() публичный статический Метод

public static AddDaysSafe ( this date, double value ) : System.DateTime
date this
value double
Результат System.DateTime

DayText() публичный статический Метод

public static DayText ( int day ) : String
day int
Результат String

FirstOfMonth() публичный статический Метод

public static FirstOfMonth ( this d ) : System.DateTime
d this
Результат System.DateTime

GetDifferenceInFullMonths() публичный статический Метод

public static GetDifferenceInFullMonths ( this firstDate, System.DateTime secondDate ) : int
firstDate this
secondDate System.DateTime
Результат int

GetDifferenceInFullYearsWith() публичный статический Метод

public static GetDifferenceInFullYearsWith ( this firstDate, System.DateTime secondDate ) : int
firstDate this
secondDate System.DateTime
Результат int

IsFirstOfMonth() публичный статический Метод

public static IsFirstOfMonth ( System.DateTime d ) : bool
d System.DateTime
Результат bool

IsLastOfMonth() публичный статический Метод

public static IsLastOfMonth ( System.DateTime d ) : bool
d System.DateTime
Результат bool

LastOfMonth() публичный статический Метод

public static LastOfMonth ( this d ) : System.DateTime
d this
Результат System.DateTime

Max() публичный статический Метод

public static Max ( this a, System.DateTime b ) : System.DateTime
a this
b System.DateTime
Результат System.DateTime

Min() публичный статический Метод

public static Min ( this a, System.DateTime b ) : System.DateTime
a this
b System.DateTime
Результат System.DateTime

Minutes() публичный статический Метод

Minutes écoulées depuis minuit pour cette date : entre 0 et 1440
public static Minutes ( this d ) : int
d this
Результат int

Next() публичный статический Метод

public static Next ( this d, DayOfWeek day ) : System.DateTime
d this
day DayOfWeek
Результат System.DateTime

NextOrCurrent() публичный статический Метод

public static NextOrCurrent ( this d, DayOfWeek day ) : System.DateTime
d this
day DayOfWeek
Результат System.DateTime

Previous() публичный статический Метод

public static Previous ( this d, DayOfWeek day ) : System.DateTime
d this
day DayOfWeek
Результат System.DateTime

PreviousOrCurrent() публичный статический Метод

public static PreviousOrCurrent ( this d, DayOfWeek day ) : System.DateTime
d this
day DayOfWeek
Результат System.DateTime

ToFrenchLongText() публичный статический Метод

public static ToFrenchLongText ( this d ) : String
d this
Результат String

ToFrenchLongTextHeure() публичный статический Метод

public static ToFrenchLongTextHeure ( this d ) : String
d this
Результат String

ToHttpDate() публичный статический Метод

public static ToHttpDate ( this d ) : string
d this
Результат string

ToISO() публичный статический Метод

public static ToISO ( this d ) : String
d this
Результат String

ToISOz() публичный статический Метод

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
Результат String

ToJQuery() публичный статический Метод

public static ToJQuery ( this d ) : String
d this
Результат String

ToJSONDate() публичный статический Метод

public static ToJSONDate ( this d ) : String
d this
Результат String

ToJSONDateTime() публичный статический Метод

public static ToJSONDateTime ( this d ) : String
d this
Результат String

ToMidnightTimeIfEmpty() публичный статический Метод

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
Результат System.DateTime

ToShortDate() публичный статический Метод

new DateTime(2008, 8, 29, 19, 27, 15) ==> août 2008
public static ToShortDate ( this d ) : String
d this
Результат String

ToShortDateTimeString() публичный статический Метод

public static ToShortDateTimeString ( this d ) : String
d this
Результат String

ToShortFrenchTimeString() публичный статический Метод

public static ToShortFrenchTimeString ( this d ) : String
d this
Результат String

ToShortISO() публичный статический Метод

public static ToShortISO ( this d ) : String
d this
Результат String

ToShortUpperDay() публичный статический Метод

public static ToShortUpperDay ( this d ) : String
d this
Результат String

ToShortUpperMonth() публичный статический Метод

public static ToShortUpperMonth ( this d ) : String
d this
Результат String

toShortUserFormat() публичный статический Метод

public static toShortUserFormat ( this date, int format ) : String
date this
format int
Результат String

weekNumber() публичный статический Метод

public static weekNumber ( this d ) : int
d this
Результат int

Описание свойств

dayText публичное статическое свойство

public static String[] dayText
Результат String[]