Made ServerGui usable and prepared for 3.0

This commit is contained in:
2019-04-28 12:06:49 +02:00
parent 510cb9c295
commit ffdd3e6dee
6 changed files with 33 additions and 14 deletions

View File

@@ -0,0 +1,12 @@
package data;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class ServerTime {
public static String getTimestamp() {
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy.MM.dd HH:mm");
LocalDateTime ldt = LocalDateTime.now();
return formatter.format(ldt);
}
}