dev.the_fireplace.grandeconomy.time.CurrentDay Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of GrandEconomy Show documentation
Show all versions of GrandEconomy Show documentation
A server-side economy mod/api for Minecraft.
package dev.the_fireplace.grandeconomy.time;
public class CurrentDay {
public static long getCurrentDay() {
return timeToDays(getCurrentServerTime());
}
private static long getCurrentServerTime() {
return System.currentTimeMillis();
}
private static long timeToDays(long time) {
long day = 1000 * 60 * 24 * 60;
return time / day;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy