As the title describe, if I have a DateTime
object in JodaTime:
import org.joda.time.DateTime
val currentDateTime = new DateTime()
the variable currentDateTime
should give me the date and time in my local timezone.
How do I get the DateTimeZone
of currentDateTime
from here?
调用getZone()
方法:
currentDateTime.getZone()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.