Class TimestampDecoder

java.lang.Object
com.github.rhys_h_walker.misc.TimestampDecoder

public class TimestampDecoder extends Object
Static method to decode a String timestamp into various useful formats
  • Method Summary

    Modifier and Type
    Method
    Description
    static File
    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • timestampToFile

      public static 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
      Parameters:
      timestamp - The timestamp to convert
      Returns:
      A file object pointing to the log that is being located