Answers for "4 byte timestamp java"

0

4 byte timestamp java

int dateInSec = (int) (System.currentTimeMillis() / 1000);
byte[] bytes = ByteBuffer.allocate(4).putInt(dateInSec).array();
Posted by: Guest on April-02-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language