Edit this page

offset

Returns the timezone difference between UTC and the passed timezone.

Parameters

utcTime Date |Number

The utcTime, represented as a date object or milliseconds.

timezone String

The timezone.

Returns

Number A number, representing the time difference between UTC and the passed timezone, in minutes.

Example

<script>
    var targetDate = new Date(2016,10,5,15,25,11);
    var timeZoneOffset = kendo.timezone.offset(targetDate,"Europe/Sofia");
    console.log(timeZoneOffset); //-120
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy