Analog .NET TimeSpan for Java?

Good afternoon.


Situation: there are asmx SOAP web service .NET. You need to work with them from within the app under Android. For working with SOAP on Android use ksoap2 library.

Problem: using wsdl@ksoap well generate all the necessary entities, but here's the thing: some parameters are of type TimeSpan, which Java, of course, does not understand.

Hence the question: which type can be used for equivalent replacement? The problem is similar to common, but gugleniya sense as it has not increased. In Android development and Java I'm new.
October 8th 19 at 02:29
3 answers
October 8th 19 at 02:31
Yes, about Joda Time read, but somehow reluctant to pull in a mobile project for the processing of pairs of fields. - Winnifred.Bins54 commented on October 8th 19 at 02:34
October 8th 19 at 02:33
Don't know Java but I believe there is an Int64:

public struct TimeSpan:... {
...
internal long _ticks;
...
}
64-bit int in java is called long - Winnifred.Bins54 commented on October 8th 19 at 02:36
October 8th 19 at 02:35
If you need a couple of fields then why not just write your own class?

Find more questions by tags SOAPJavaAndroid