oblac / jodd

Jodd! Lightweight. Java. Zero dependencies. Use what you like.
https://jodd.org
BSD 2-Clause "Simplified" License
4.07k stars 722 forks source link

I can not find Class of JDateTime,it has been removed? #603

Closed 92cuixuan closed 6 years ago

92cuixuan commented 6 years ago

See the title.

igr commented 6 years ago

Partially.

The calculation is here: https://github.com/oblac/jodd/blob/master/jodd-core/src/main/java/jodd/util/JulianDate.java It is very nice math code I didn't want to throw away :)

JDateTime was the most bashed class in the whole Jodd - without even looking any further ppl would discard Jodd. To be honest, Java8 comes with java.time package that is more complete; hence we don't need JDateTime any more.

Just use LocalDateTime instead and love Jodd :)

Hope you understand.

yujinping commented 6 years ago

@igr Have one question,Jodd not support LocalDateTime,LocalDate,LocalTime as default(JDateTIme is supported by default) ,Would you please add the json serialize convert and sqltype for these with JoddJoy,and regist theme as default?

igr commented 6 years ago

@jodder you are right. started working on that...

igr commented 6 years ago

@jodder just added 4b53fb989ebdbb11cf1e6351a1857bb678f39745