Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const weekPercent = now => {
- const today = now.day();
- let weekTime;
- if (today == 1) {
- weekTime = convertToMinutes(now);
- } else {
- weekTime = 1440 * (today - 1) + convertToMinutes(now);
- }
- return (weekTime / 10080) * 100;
- };
Add Comment
Please, Sign In to add comment