Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个问题:
1- 从 Android 设备获取 UTC 时间 2- 将其转换为 UNIX 时间格式(毫秒)
我感谢任何反馈可以提供帮助
我相信这应该有效:
Date now = Calendar.getInstance().getTime(); // this gets you current time as a Date long milis = now.getTime(); // this gets you current time in UNIX format