Package com.github.rhys_h_walker.misc
Class TimestampDecoder
java.lang.Object
com.github.rhys_h_walker.misc.TimestampDecoder
Static method to decode a String timestamp into various useful formats
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
timestampToFile
(String timestamp) Resolve a timestamp into a File object for Java This method assumes the timestamp given complies with the format "year-month-day-hour:minute:second" No checking is done as to whether this is true No checking is done whether it even exists
-
Method Details
-
timestampToFile
Resolve a timestamp into a File object for Java This method assumes the timestamp given complies with the format "year-month-day-hour:minute:second" No checking is done as to whether this is true No checking is done whether it even exists- Parameters:
timestamp
- The timestamp to convert- Returns:
- A file object pointing to the log that is being located
-