com.sap.it.commons.tools.TimeTools Maven / Gradle / Ivy
package com.sap.it.commons.tools;
import java.util.Date;
import java.util.TimeZone;
public class TimeTools {
private TimeTools() {
}
private static final TimeZone DEFAULT_TIMEZONE = TimeZone.getDefault();
public static int getCurrentOffsetMillis() {
return DEFAULT_TIMEZONE.getOffset(System.currentTimeMillis());
}
public static Date copyDate(Date date) {
return date != null ? new Date(date.getTime()) : null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy