I want to convert the current time to the time in a specific timezone with Joda time.
Is there a way to convert DateTime time = new DateTime()
to a specific timezone, or perhaps to get the number of hours difference between time.getZone()
and another DateTimeZone
to then do time.minusHours
or time.plusHours
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…