java - Using Joda time to get current wall time for a given Time Zone - Stack Overflow
DateTime currentTime = DateTime.now( DateTimeZone.UTC );
This gets you the current time in UTC but this value can be converted to another DateTimeZone
or you can replace DateTimeZone.UTC
with a different DateTimeZone
.
Read full article from java - Using Joda time to get current wall time for a given Time Zone - Stack Overflow
No comments:
Post a Comment