Skip to content

Commit 046b1f3

Browse files
committed
move helper classes up to more general libs
1 parent a0459eb commit 046b1f3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)