TimeZoneHelper Methods |
The TimeZoneHelper type exposes the following members.
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).
| |
GetCurrentTimeZoneDateTimeString |
Returns string representation of the given date/time converted to user, site or server time zone.
| |
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.
| |
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)'.
|
Name | Description | |
---|---|---|
AsValue |
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.) | |
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.) |