ThreeTen / threeten-extra

Provides additional date-time classes that complement those in JDK 8
http://www.threeten.org/threeten-extra/
BSD 3-Clause "New" or "Revised" License
387 stars 77 forks source link

A new method to format only with provided formats. #269

Open ptahchiev opened 1 year ago

ptahchiev commented 1 year ago

I'm having two instances of LocalDateTime and I want to get the time it has passed between them, but I only need days, hours and minutes.

For this reason I have created a new method that allows users to specify which formats they want included in the final result.