I ve made an windows phone app in c# and now I m making equal android app. I ve come to the problem where I have to compare some times. In c# there is a well known TimeSpan class but I see that java(Android) does not have such class.
Could anyone tell me how could I approach such problem. The thing is that I m running out of time and I would like some decent answers if possible.

Recommended Answers

Time is Android represented either by Date or Time objects. Each of these will return result in miliseconds as long variable (http://developer.android.com/reference/java/util/Date.html#getTime()

Jump to Post

All 2 Replies

I did that tnx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.