We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0459eb commit 046b1f3Copy full SHA for 046b1f3
src/net/sharksystem/asap/util/DateTimeHelper.java
@@ -0,0 +1,15 @@
1
+package net.sharksystem.asap.util;
2
+
3
+import java.text.DateFormat;
4
+import java.util.Date;
5
6
+public class DateTimeHelper {
7
+ public static final long TIME_NOT_SET = -1;
8
9
+ public static String long2DateString(long longtime) {
10
+ if(longtime == TIME_NOT_SET) return "not set (yet)";
11
12
+ Date date = new Date(longtime);
13
+ return DateFormat.getInstance().format(date);
14
+ }
15
+}
0 commit comments