在Android的timeIntervalSinceReferenceDate等效 [英] Equivalent of timeIntervalSinceReferenceDate in android

查看:204
本文介绍了在Android的timeIntervalSinceReferenceDate等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有以计算相对于时间间隔为日期的方法,更类似于在iPhone上timeIntervalSinceReferenceDate?
感谢..

Is there a method to calculate the time interval with respect to a date, much similar to the timeIntervalSinceReferenceDate in iPhone? thanks..

推荐答案

System.currentTimeMillis的()返回自毫秒数午夜1970年1月1日为

System.currentTimeMillis() returns the number of milliseconds since midnight January 1 1970 as a long.

这篇关于在Android的timeIntervalSinceReferenceDate等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆