Метод | Описание | |
---|---|---|
ConvertToUserTime ( System.DateTime dt ) : System.DateTime |
Converts the date and time to current user date and time
|
|
ConvertToUserTime ( System.DateTime dt, DateTimeKind sourceDateTimeKind ) : System.DateTime |
Converts the date and time to current user date and time
|
|
ConvertToUserTime ( System.DateTime dt, |
Converts the date and time to current user date and time
|
|
ConvertToUserTime ( System.DateTime dt, |
Converts the date and time to current user date and time
|
|
ConvertToUtcTime ( System.DateTime dt ) : System.DateTime |
Converts the date and time to Coordinated Universal Time (UTC)
|
|
ConvertToUtcTime ( System.DateTime dt, DateTimeKind sourceDateTimeKind ) : System.DateTime |
Converts the date and time to Coordinated Universal Time (UTC)
|
|
ConvertToUtcTime ( System.DateTime dt, |
Converts the date and time to Coordinated Universal Time (UTC)
|
|
DateTimeHelper ( IWorkContext workContext ) : System |
Ctor
|
|
FindTimeZoneById ( string id ) : |
Retrieves a System.TimeZoneInfo object from the registry based on its identifier.
|
|
GetCustomerTimeZone ( |
Gets a customer time zone
|
|
GetSystemTimeZones ( ) : ReadOnlyCollection |
Returns a sorted collection of all the time zones
|
public ConvertToUserTime ( System.DateTime dt ) : System.DateTime | ||
dt | System.DateTime | The date and time (respesents local system time or UTC time) to convert. |
Результат | System.DateTime |
public ConvertToUserTime ( System.DateTime dt, DateTimeKind sourceDateTimeKind ) : System.DateTime | ||
dt | System.DateTime | The date and time (respesents local system time or UTC time) to convert. |
sourceDateTimeKind | DateTimeKind | The source datetimekind |
Результат | System.DateTime |
public ConvertToUserTime ( System.DateTime dt, |
||
dt | System.DateTime | The date and time to convert. |
sourceTimeZone | The time zone of dateTime. | |
Результат | System.DateTime |
public ConvertToUserTime ( System.DateTime dt, |
||
dt | System.DateTime | The date and time to convert. |
sourceTimeZone | The time zone of dateTime. | |
destinationTimeZone | The time zone to convert dateTime to. | |
Результат | System.DateTime |
public ConvertToUtcTime ( System.DateTime dt ) : System.DateTime | ||
dt | System.DateTime | The date and time (respesents local system time or UTC time) to convert. |
Результат | System.DateTime |
public ConvertToUtcTime ( System.DateTime dt, DateTimeKind sourceDateTimeKind ) : System.DateTime | ||
dt | System.DateTime | The date and time (respesents local system time or UTC time) to convert. |
sourceDateTimeKind | DateTimeKind | The source datetimekind |
Результат | System.DateTime |
public ConvertToUtcTime ( System.DateTime dt, |
||
dt | System.DateTime | The date and time to convert. |
sourceTimeZone | The time zone of dateTime. | |
Результат | System.DateTime |
public DateTimeHelper ( IWorkContext workContext ) : System | ||
workContext | IWorkContext | Work context |
Результат | System |
public FindTimeZoneById ( string id ) : |
||
id | string | The time zone identifier, which corresponds to the System.TimeZoneInfo.Id property. |
Результат |
public GetCustomerTimeZone ( |
||
customer | Customer | |
Результат |
public GetSystemTimeZones ( ) : ReadOnlyCollection |
||
Результат | ReadOnlyCollection |