📅  最后修改于: 2022-03-11 14:52:32.838000             🧑  作者: Mango
代码示例1
int dateInSec = (int) (System.currentTimeMillis() / 1000);
byte[] bytes = ByteBuffer.allocate(4).putInt(dateInSec).array();