Ad
Fundamentals
Strings
Data Types
Code
Diff
  • minutes = -> i { '%d:%02d' % i.divmod(60) }
    • minutes = -> i { '%d:%02d' % [i / 60, i % 60] }
    • minutes = -> i { '%d:%02d' % i.divmod(60) }
Fundamentals
Strings
Data Types
Code
Diff
  • minutes = -> i { '%d:%02d' % [i / 60, i % 60] }
    • function minutes(num){
    • return num % 60 < 10 ? Math.floor(num/60) + ':' + '0' + (num % 60) : Math.floor(num/60) + ':' + (num % 60)
    • }
    • minutes = -> i { '%d:%02d' % [i / 60, i % 60] }