android currenttimemillis to unix timestamp code example Example: get current unix timestamp java System.currentTimeMillis() / 1000L;