Created
June 22, 2019 15:27
-
-
Save nathanqueija/736d7362890e60913dbcae04865dcbdd to your computer and use it in GitHub Desktop.
Horas do dia
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
const horarios = Array.from({length: 48}).map((v,i) => { | |
const d = new Date(); | |
d.setUTCHours(0,0,0,0); | |
d.setMinutes(d.getMinutes() + (30 * i)); | |
return d.toISOString().substr(11, 5); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment