I want to convert the hours into minutes.
Example: If hour
is 2:18
, then I want the output as 138
minutes.
<script>
m = diff % 60;
h = (diff - m) / 60;
mins = h.toString() + ":" + (m < 10 ? "0" : "") + m.toString();
alert(mins)
</script>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…