如何在Android上创建Unix时间戳?

如何在Android上创建Unix时间戳?

问题描述:

如何在Android上创建Unix时间戳?

How do I create a Unix timestamp on Android?

我想在URL的末尾创建带有Unix时间戳的URL发布请求.

I want to create a URL post request with a Unix timestamp on the end of the url.

 long unixTime = System.currentTimeMillis() / 1000L;