11/7/2022 0 Comments Current utc time![]()
zulu = now.toDateTime( .UTC ) ĭump to console… ( "Local time in ISO 8601 format: " + now ) #CURRENT UTC TIME CODE#More detailed example code (Joda-Time 2.3)… now = new () // Default time zone. ( "UTC/GMT date-time in ISO 8601 format: " + new ( .UTC ) ) However, the Joda-Time team does advise migration to java.time. Joda-Time continues to work in Java 8 and continues to be actively maintained (as of 2014). You may use Joda-Time in older versions of Java. Joda-Time inspired the new java.time.* classes in Java 8, but has a different architecture. Using the Joda-Time 3rd-party open-source free-of-cost library, you can get the current date-time in just one line of code. UPDATE: The Joda-Time project, now in maintenance mode, advises migration to the java.time classes. You may find some useful classes here such as Interval, YearWeek, YearQuarter, and more. This project is a proving ground for possible future additions to java.time. The ThreeTen-Extra project extends java.time with additional classes. #CURRENT UTC TIME ANDROID#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |