We have now added support for multiple datetime formats in our Java and Android SDKs. The following formats are supported:
- RFC1123 Datetime:
Mon, 15 Jun 2009 20:45:30 GMT
- RFC3339 Datetime:
- Unix Timestamp:
Our Java and Android SDKs use the joda-time library to provide this support as it is compatible with older versions of Java (6 and 7) as well as newer ones. The classes used from the joda-time library are as follows:
org.joda.time.DateTimefor DateTime types
org.joda.time.LocalDatefor Date types
Multiple DateTime formats are also supported in these languages.
You can find more information about supported datetime formats as well as other types here.
DateTime implementation in our SDKs can help you:
- Focus on building the application logic instead of worrying about date/time serialization/deserialization
- Handle different formats of datetime, according to what your API requires, without writing any code for it
- Save time zone specific information (if required)
- Avoid the hassle of configuring and consuming a 3rd party library for datetime manipulation