C# Class System.DateTimeExtensions

Afficher le fichier Open project: TargetProcess/Target-Process-Plugins

Méthodes publiques

Свойство Type Description
MaxDateValue DateTime
MinDateValue DateTime

Private Properties

Свойство Type Description
Date DateTime?
DateDiffInSeconds int
FloorMonth System.DateTime
FloorMonth DateTime?
FloorQuarter System.DateTime
FloorQuarter DateTime?
FloorWeek System.DateTime
FloorWeek DateTime?
FloorYear System.DateTime
FloorYear DateTime?
ForecastEndDate DateTime?
WeekNumber int

Méthodes publiques

Méthode Description
AddDays ( this date, double days ) : DateTime?
Days ( this days ) : System.TimeSpan
GetDateName ( this date ) : string
GetPartWeekName ( this weekStartDate, System.DateTime weekEndDate ) : string
GetWeekFirstDay ( this date ) : System.DateTime
GetWeekLastDay ( this date ) : System.DateTime
GetWeekName ( this date ) : string
HumanFormat ( this dateTime ) : IFormattedMessage
Subtract ( this date, TimeSpan timeSpan ) : DateTime?
SubtractDays ( this dateTime, int days ) : DateTime
ToJavascriptDate ( this date ) : long
TrimHours ( this dateTime ) : DateTime
TrimMilliseconds ( this dateTime ) : DateTime
TrimMilliseconds ( this dateTime ) : DateTime?
Truncate ( this dateTime, TimeSpan timeSpan ) : DateTime

Private Methods

Méthode Description
Date ( this date ) : DateTime?
DateDiffInSeconds ( this date, System.DateTime otherDate ) : int
FloorMonth ( this date ) : System.DateTime
FloorMonth ( this date ) : DateTime?
FloorQuarter ( this date ) : System.DateTime
FloorQuarter ( this date ) : DateTime?
FloorWeek ( System.DateTime dateTime ) : System.DateTime
FloorWeek ( this date ) : DateTime?
FloorYear ( this date ) : System.DateTime
FloorYear ( this date ) : DateTime?
ForecastEndDate ( this startDate, System.DateTime now, decimal progress ) : DateTime?
WeekNumber ( this date ) : int

Method Details

AddDays() public static méthode

public static AddDays ( this date, double days ) : DateTime?
date this
days double
Résultat DateTime?

Days() public static méthode

public static Days ( this days ) : System.TimeSpan
days this
Résultat System.TimeSpan

GetDateName() public static méthode

public static GetDateName ( this date ) : string
date this
Résultat string

GetPartWeekName() public static méthode

public static GetPartWeekName ( this weekStartDate, System.DateTime weekEndDate ) : string
weekStartDate this
weekEndDate System.DateTime
Résultat string

GetWeekFirstDay() public static méthode

public static GetWeekFirstDay ( this date ) : System.DateTime
date this
Résultat System.DateTime

GetWeekLastDay() public static méthode

public static GetWeekLastDay ( this date ) : System.DateTime
date this
Résultat System.DateTime

GetWeekName() public static méthode

public static GetWeekName ( this date ) : string
date this
Résultat string

HumanFormat() public static méthode

public static HumanFormat ( this dateTime ) : IFormattedMessage
dateTime this
Résultat IFormattedMessage

Subtract() public static méthode

public static Subtract ( this date, TimeSpan timeSpan ) : DateTime?
date this
timeSpan TimeSpan
Résultat DateTime?

SubtractDays() public static méthode

public static SubtractDays ( this dateTime, int days ) : DateTime
dateTime this
days int
Résultat DateTime

ToJavascriptDate() public static méthode

public static ToJavascriptDate ( this date ) : long
date this
Résultat long

TrimHours() public static méthode

public static TrimHours ( this dateTime ) : DateTime
dateTime this
Résultat DateTime

TrimMilliseconds() public static méthode

public static TrimMilliseconds ( this dateTime ) : DateTime
dateTime this
Résultat DateTime

TrimMilliseconds() public static méthode

public static TrimMilliseconds ( this dateTime ) : DateTime?
dateTime this
Résultat DateTime?

Truncate() public static méthode

public static Truncate ( this dateTime, TimeSpan timeSpan ) : DateTime
dateTime this
timeSpan TimeSpan
Résultat DateTime

Property Details

MaxDateValue public_oe static_oe property

public static DateTime MaxDateValue
Résultat DateTime

MinDateValue public_oe static_oe property

public static DateTime MinDateValue
Résultat DateTime