Liferay.Loader.define("commerce-dashboard-web$d3-time@1.0.10/src/hour", ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    import interval from "./interval";
    import { durationHour, durationMinute } from "./duration";

    var hour = interval(function (date) {
      var offset = date.getTimezoneOffset() * durationMinute % durationHour;
      if (offset < 0) offset += durationHour;
      date.setTime(Math.floor((+date - offset) / durationHour) * durationHour + offset);
    }, function (date, step) {
      date.setTime(+date + step * durationHour);
    }, function (start, end) {
      return (end - start) / durationHour;
    }, function (date) {
      return date.getHours();
    });

    export default hour;
    export var hours = hour.range;
  }
});
//# sourceMappingURL=hour.js.map