Friday, 1 March 2013

Long subway timing for iOS and Android


for android use..

                Long timing1 = Long.parseLong(timing) * 1000;

        arrivalStr = arrivalStr + (int)((Long.parseLong(timing)-System.currentTimeMillis())/1000/60)+" min ";        

 

for iOS use..

               long long timing2 = [[NSDate date] timeIntervalSince1970] * 1000;

No comments:

Post a Comment