In Ruby on Rails, there is a very handy syntax to create a date time object.
1.minute.from_now
2.hours.ago
Is there a similar syntax in JavaScript using a library like Luxon.js for example?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
In Ruby on Rails, there is a very handy syntax to create a date time object.
1.minute.from_now
2.hours.ago
Is there a similar syntax in JavaScript using a library like Luxon.js for example?