C# Class Rebel.Framework.Localization.DateTimeHelpers

Exibir arquivo Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
AdjustToTimeZone ( DateTime date ) : DateTime

Adjusts the date to the context's current time zone as defined by the current TextManager

AdjustToTimeZone ( DateTime date, TimeZoneInfo timeZoneInfo ) : DateTime

Adjusts the date to the TimeZoneInfo specified

AdjustToTimeZone ( this date ) : System.DateTime

Adjusts the date to the context's current time zone as defined by the current TextManager

AdjustToTimeZone ( this date, TimeZoneInfo timeZoneInfo ) : System.DateTime

Adjusts the date to the TimeZoneInfo specified

Method Details

AdjustToTimeZone() public static method

Adjusts the date to the context's current time zone as defined by the current TextManager
public static AdjustToTimeZone ( DateTime date ) : DateTime
date DateTime The date.
return DateTime

AdjustToTimeZone() public static method

Adjusts the date to the TimeZoneInfo specified
public static AdjustToTimeZone ( DateTime date, TimeZoneInfo timeZoneInfo ) : DateTime
date DateTime The date.
timeZoneInfo TimeZoneInfo The time zone info.
return DateTime

AdjustToTimeZone() public static method

Adjusts the date to the context's current time zone as defined by the current TextManager
public static AdjustToTimeZone ( this date ) : System.DateTime
date this The date.
return System.DateTime

AdjustToTimeZone() public static method

Adjusts the date to the TimeZoneInfo specified
public static AdjustToTimeZone ( this date, TimeZoneInfo timeZoneInfo ) : System.DateTime
date this The date.
timeZoneInfo System.TimeZoneInfo The time zone info.
return System.DateTime