C# Class Commencement.Core.Helpers.DateTimeExtensions

Afficher le fichier Open project: ucdavis/Commencement

Méthodes publiques

Свойство Type Description
Pacific System.TimeZoneInfo

Méthodes publiques

Méthode Description
AddBusinessDays ( this dateTime, int days ) : System.DateTime

Probably don't need this. Copied from Giving

Between ( this dateTime, System.DateTime start, System.DateTime end, DateInclusion dateInclusion, TimeZoneInfo timeZone = null, bool dateOnly = false ) : bool

Compares the date against 1 (after) or 2 (between) dates.

FromPacificTime ( this dateTime ) : System.DateTime
ToPacificTime ( this dateTime ) : System.DateTime
ToPacificTime ( this dateTime ) : DateTime?

Method Details

AddBusinessDays() public static méthode

Probably don't need this. Copied from Giving
public static AddBusinessDays ( this dateTime, int days ) : System.DateTime
dateTime this
days int
Résultat System.DateTime

Between() public static méthode

Compares the date against 1 (after) or 2 (between) dates.
public static Between ( this dateTime, System.DateTime start, System.DateTime end, DateInclusion dateInclusion, TimeZoneInfo timeZone = null, bool dateOnly = false ) : bool
dateTime this
start System.DateTime The starting date time
end System.DateTime (Optional) The ending date time
dateInclusion DateInclusion Inclusion or exclusion of start/end date. Default is Inclusive if null.
timeZone System.TimeZoneInfo Timezone to convert all dates to. (If used, ensure all dates are in utc)
dateOnly bool Compare date only
Résultat bool

FromPacificTime() public static méthode

public static FromPacificTime ( this dateTime ) : System.DateTime
dateTime this
Résultat System.DateTime

ToPacificTime() public static méthode

public static ToPacificTime ( this dateTime ) : System.DateTime
dateTime this
Résultat System.DateTime

ToPacificTime() public static méthode

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

Property Details

Pacific public_oe static_oe property

public static TimeZoneInfo,System Pacific
Résultat System.TimeZoneInfo