What is the difference between these two DateTime's methods?
DateTime.withZone(DateTimeZone zone)
DateTime.toDateTime(DateTimeZone zone)
??
They both seem to load the timezone, without touching the millis of the DateTime.
I believe they are identical. They perform the same function anyway. They appear to be implemented separately, rather than having one call the other. I'm unsure why.
The only difference I can see is that toDateTime must be implemented, because it is defined in AbstractInstant, and DateTime extends AbstractInstant.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With