luxon get current hour and minutes code example
Example 1: luxon compare dates
d1 < d2 // is d1 before d2?
Example 2: luxon plus
DateTime.local().plus(123) //~> in 123 milliseconds
DateTime.local().plus({ minutes: 15 }) //~> in 15 minutes
DateTime.local().plus({ days: 1 }) //~> this time tomorrow
DateTime.local().plus({ days: -1 }) //~> this time yesterday
DateTime.local().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min
DateTime.local().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min