Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: luxon
node v10.24.1
endpoint
share
tweet
var luxon = require("luxon") var DateTime = luxon.DateTime; var Settings = luxon.Settings; var timezone = 'America/Asuncion'; Settings.defaultZoneName = timezone; var startDate = DateTime.fromISO('2018-10-01T04:00:00.000Z'); [2, 3, 4, 5, 6].map(day => { return startDate.plus({days: day}).toLocaleString(DateTime.DATETIME_FULL); });
Created from: https://npm.runkit.com/luxon
Loading…
Clone and edit this document