Class KoreanDateUtil
java.lang.Object
tools.KoreanDateUtil
Provides a suite of tools for manipulating Korean Timestamps.
- Since:
- Revision 746
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longgetFileTimestamp(long timeStampinMillis, boolean roundToMinutes) static final intgetItemTimestamp(long realTimestamp) Gets a timestamp for item expiration.static final longgetTempBanTimestamp(long realTimestamp) Converts a Unix Timestamp into File Timestatic booleanisDST()
-
Constructor Details
-
KoreanDateUtil
public KoreanDateUtil()
-
-
Method Details
-
getTempBanTimestamp
public static final long getTempBanTimestamp(long realTimestamp) Converts a Unix Timestamp into File Time- Parameters:
realTimestamp- The actual timestamp in milliseconds.- Returns:
- A 64-bit long giving a filetime timestamp
-
getItemTimestamp
public static final int getItemTimestamp(long realTimestamp) Gets a timestamp for item expiration.- Parameters:
realTimestamp- The actual timestamp in milliseconds.- Returns:
- The Korean timestamp for the real timestamp.
-
isDST
public static boolean isDST() -
getFileTimestamp
public static long getFileTimestamp(long timeStampinMillis, boolean roundToMinutes)
-