The TimeZoneHelper type exposes the following members.
Back to Top
Back to Top
Back to Top
Back to Top
Constructors
Name | Description | |
---|---|---|
TimeZoneHelper |
Methods
Name | Description | |
---|---|---|
ConvertDataSet |
Converts the DateTime columns values of the DataSet to user datetime.
| |
ConvertDataTable |
Converts the DateTime columns of the table values to user datetime.
| |
ConvertTimeToUserTime |
Returns user date time in dependence on user time zone from specified DateTime a TimeZone.
| |
ConvertTimeToUTC |
Returns UTC date time in dependence on given time zone.
| |
ConvertTimeZoneDateTime |
Returns DateTime according timezone information.
| |
ConvertToServerDateTime(DateTime, ISiteInfo) |
Returns server date time in dependence on server time zone.
| |
ConvertToServerDateTime(DateTime, IUserInfo) |
Returns server date time in dependence on server time zone.
| |
ConvertToServerDateTime(DateTime, TimeZoneInfo) |
Returns server date time in dependence on server time zone.
| |
ConvertToSiteDateTime(DateTime, ISiteInfo) |
Returns site date time in dependence on site time zone.
| |
ConvertToSiteDateTime(DateTime, ISiteInfo, TimeZoneInfo ) |
Returns site date time in dependence on site time zone.
| |
ConvertToUserDateTime(DateTime, IUserInfo) |
Returns user date time in dependence on user time zone.
| |
ConvertToUserDateTime(DateTime, IUserInfo, TimeZoneInfo ) |
Returns user date time in dependence on user time zone.
| |
ConvertToUserTimeZone |
Returns string representing of given time converted into user date time (site or server).
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetCurrentTimeZoneDateTimeString |
Returns string representation of the given date/time converted to user, site or server time zone.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetSiteDateTime |
Returns user current date time in dependence on user time zone.
| |
GetTimeZoneInfo(Int32) |
Returns timezone info.
| |
GetTimeZoneInfo(String) |
Returns timezone info.
| |
GetTimeZoneInfo(ISiteInfo) |
Returns site timezone.
| |
GetTimeZoneInfo(IUserInfo) |
Returns user timezone.
| |
GetTimeZoneInfo(IUserInfo, ISiteInfo) |
Returns timezone of given user or site timezone is the user one is not set. If also site timezone is not set then server timezone is returned.
| |
GetTimeZoneManager |
Gets the time zone manager for the given control.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUserDateTime |
Returns user current date time in dependence on user time zone.
| |
GetUTCLongStringOffset(TimeZoneInfo) |
Returns "long" string representation of time zone shift in form '(UTC + 00:00) TimeZoneDisplayName'.
| |
GetUTCLongStringOffset(IUserInfo, ISiteInfo) |
Returns "long" string representation of used time zone (user, site or server) in form '(UTC + 00:00) TimeZoneDisplayName'.
Returns null if time zones are disabled.
| |
GetUTCStringOffset |
Returns string representation of time zone shift in form '(UTC + 00:00)'.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
GetAPIString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
GetString |
Gets the string by the specified resource key
(Defined by CoreExtensions.) | |
ToBoolean |
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDateTime |
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToDouble |
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToGuid |
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToInteger |
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.) | |
ToString |
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.) |
Properties
Name | Description | |
---|---|---|
ServerTimeZone |
Returns server timezone.
| |
TimeZonesEnabled |
Returns true if global CMSTimeZonesEnable setting key is true.
|
See Also