Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var count_down = moment().hour(23).min(30);
- alert( count_down.format('H[h ]m[min ]s[s]') );
- var format = 'H[h ]m[min ]s[s]';
- if (count_down.hour() === 0)
- format = 'm[min ]s[s]';
- alert( count_down.format(format) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement