You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build a countdown. However, I realized differenceInMinutes is similar to Math.floor.
// return 0 which is expectedconstmin1=differenceInMinutes(newDate(2014,6,2,12,20,0),newDate(2014,6,2,12,20,0));// return 0, however I hope it return 1constmin2=differenceInMinutes(newDate(2014,6,2,12,20,0),newDate(2014,6,2,12,19,59));
It would be great to support Math.ceil way too.
The text was updated successfully, but these errors were encountered:
I am trying to build a countdown. However, I realized
differenceInMinutes
is similar toMath.floor
.It would be great to support
Math.ceil
way too.The text was updated successfully, but these errors were encountered: