Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let time = moment(moment.duration(num, 'minutes')).format('Hч. Mм.');
- function getTimeFromMins(mins) {
- let hours = Math.trunc(mins/60);
- let minutes = mins % 60;
- return hours + ':' + minutes;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement