@razorpay/blade
Version:
The Design System that powers Razorpay
18 lines (14 loc) • 457 B
JavaScript
import { timeInterval } from './interval.js';
import { durationSecond } from './duration.js';
const second = timeInterval((date) => {
date.setTime(date - date.getMilliseconds());
}, (date, step) => {
date.setTime(+date + step * durationSecond);
}, (start, end) => {
return (end - start) / durationSecond;
}, (date) => {
return date.getUTCSeconds();
});
const seconds = second.range;
export { second, seconds };
//# sourceMappingURL=second.js.map