|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
733 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.seconds = exports.default = void 0;
|
|---|
| 7 | var _interval = _interopRequireDefault(require("./interval.js"));
|
|---|
| 8 | var _duration = require("./duration.js");
|
|---|
| 9 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|---|
| 10 | var second = (0, _interval.default)(function (date) {
|
|---|
| 11 | date.setTime(date - date.getMilliseconds());
|
|---|
| 12 | }, function (date, step) {
|
|---|
| 13 | date.setTime(+date + step * _duration.durationSecond);
|
|---|
| 14 | }, function (start, end) {
|
|---|
| 15 | return (end - start) / _duration.durationSecond;
|
|---|
| 16 | }, function (date) {
|
|---|
| 17 | return date.getUTCSeconds();
|
|---|
| 18 | });
|
|---|
| 19 | var _default = exports.default = second;
|
|---|
| 20 | var seconds = exports.seconds = second.range; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.