How do I create a Unix timestamp on Android?
long unixTime = System.currentTimeMillis() / 1000L;
It's quite simple:
long timestamp = Calendar.getInstance().getTime() / 1000;
long unixTime = System.currentTimeMillis() / 1000L;
It's quite simple:
long timestamp = Calendar.getInstance().getTime() / 1000;