Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

luxon

node v10.24.1
version: master
endpointsharetweet
const luxon = require("luxon"); const int1 = luxon.Interval.fromDateTimes( luxon.DateTime.fromISO('2020-05-01T00:00:00'), luxon.DateTime.fromISO('2020-07-01T00:00:00'), ); const dur1 = int1.toDuration(); console.log(dur1.toFormat("M 'months'")); // "2 months"
Loading…

no comments

    sign in to comment