
com.github.ddth.djs.utils.DjsUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of djs-commons Show documentation
Show all versions of djs-commons Show documentation
Distributed Job Scheduler - Common Libraries
The newest version!
package com.github.ddth.djs.utils;
import java.util.Date;
import com.github.ddth.commons.utils.IdGenerator;
import com.github.ddth.djs.bo.log.TaskLogBo;
public class DjsUtils {
public final static IdGenerator IDGEN = IdGenerator.getInstance(IdGenerator.getMacAddr());
public static Date extractTimestamp(String id128Hex) {
return new Date(IdGenerator.extractTimestamp128(id128Hex));
}
public static Date extractTimestamp(TaskLogBo taskLog) {
return extractTimestamp(taskLog.getId());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy