Last active
December 31, 2017 12:11
-
-
Save fmtarif/2e29ca05568077148333a8db07bd2c9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start = moment().hour(6).minute(0); | |
output = []; | |
for (i=1; i<33; i++) { | |
from = start.format('h:mm') | |
to = start.add('30', 'm').format('h:mm'); | |
output.push(`#${i}: ${from}-${to} - `); | |
} | |
console.log(output.join("\n")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment