source: frontend/node_modules/es-abstract/2023/SecFromTime.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 402 bytes
Line 
1'use strict';
2
3var floor = require('./floor');
4var modulo = require('./modulo');
5
6var timeConstants = require('../helpers/timeConstants');
7var msPerSecond = timeConstants.msPerSecond;
8var SecondsPerMinute = timeConstants.SecondsPerMinute;
9
10// https://262.ecma-international.org/5.1/#sec-15.9.1.10
11
12module.exports = function SecFromTime(t) {
13 return modulo(floor(t / msPerSecond), SecondsPerMinute);
14};
Note: See TracBrowser for help on using the repository browser.