Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Overview

Returns timezone information of the specified target date time.

string myCalendar.GetTimeZone(dateTime: DateTimeOffset)

Arguments

Value to extract time zone information

Remarks

Return value is "hh:mm" time span format.

Example

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>
  • No labels