Sha256: c5491c21b542882ec1fd59487b55bcab92e7dba8025beac023cc04b48dadcf43
Contents?: true
Size: 410 Bytes
Versions: 69
Compression:
Stored size: 410 Bytes
Contents
define(['../number/pad'], function (pad) { /** * time zone as hour and minute offset from UTC (e.g. +0900) */ function timezoneOffset(date){ var offset = date.getTimezoneOffset(); var abs = Math.abs(offset); var h = pad(Math.floor(abs / 60), 2); var m = pad(abs % 60, 2); return (offset > 0? '-' : '+') + h + m; } return timezoneOffset; });
Version data entries
69 entries across 69 versions & 2 rubygems