From 5ed0511e7fad12846556719f2b61905e3b6e33eb Mon Sep 17 00:00:00 2001 From: szymon Date: Thu, 6 Aug 2020 23:57:14 +0200 Subject: [PATCH] v + Added defaultDateTimeFormatter to Statics --- src/main/java/net/szum123321/textile_backup/Statics.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/net/szum123321/textile_backup/Statics.java b/src/main/java/net/szum123321/textile_backup/Statics.java index 1a50690..97ec15c 100644 --- a/src/main/java/net/szum123321/textile_backup/Statics.java +++ b/src/main/java/net/szum123321/textile_backup/Statics.java @@ -22,6 +22,8 @@ import net.szum123321.textile_backup.core.CustomLogger; import net.szum123321.textile_backup.core.create.BackupScheduler; import net.szum123321.textile_backup.core.restore.AwaitThread; +import java.io.File; +import java.time.format.DateTimeFormatter; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicBoolean; @@ -35,6 +37,8 @@ public class Statics { public static final BackupScheduler scheduler = new BackupScheduler(); public static ExecutorService executorService = Executors.newSingleThreadExecutor(); + public final static DateTimeFormatter defaultDateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd_HH.mm.ss"); + public static final AtomicBoolean globalShutdownBackupFlag = new AtomicBoolean(true); public static AwaitThread restoreAwaitThread; }