GetTimeZone
Returns the time zone information of the specified DateTimeOffset
value.
| myCalendar.GetTimeZone(dateTime: DateTimeOffset):string
|
Parameters
DateTimeOffset dateTime
The DateTimeOffset
value to extract the time zone information from.
Returns
The time zone information in "hh:mm" time span format.
Results:
| var currentDate = $Calendar.Today;
$Xml.SetValue('CurrentDate', currentDate);
$Xml.SetValue('ChangedDate', $Calendar.ChangeTimeZone(currentDate, '02:00'));
$Xml.SetValue('Result', $Calendar.GetTimeZone($Xml.EvaluateDateTime('ChangedDate')));
|
Example
| <CurrentDate>2017-01-25T15:47:56.4198506Z</CurrentDate>
<ChangedDate>2017-01-25T17:47:56.4198506+02:00</ChangedDate>
<Result>2:0</Result>
|
See Also