C# Class Commencement.Core.Helpers.DateTimeExtensions

Exibir arquivo Open project: ucdavis/Commencement

Public Properties

Property Type Description
Pacific System.TimeZoneInfo

Public Methods

Method 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 method

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

Between() public static method

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
return bool

FromPacificTime() public static method

public static FromPacificTime ( this dateTime ) : System.DateTime
dateTime this
return System.DateTime

ToPacificTime() public static method

public static ToPacificTime ( this dateTime ) : System.DateTime
dateTime this
return System.DateTime

ToPacificTime() public static method

public static ToPacificTime ( this dateTime ) : DateTime?
dateTime this
return DateTime?

Property Details

Pacific public_oe static_oe property

public static TimeZoneInfo,System Pacific
return System.TimeZoneInfo