Module jonix

Class TimestampParser

java.lang.Object
com.tectonica.jonix.util.TimestampParser

public class TimestampParser extends Object
  • Constructor Details

    • TimestampParser

      public TimestampParser()
  • Method Details

    • extractTimstampFromFileName

      public static Calendar extractTimstampFromFileName(String fileName)
      Attempts to retrieve a time-stamp from a given file-name. Looks for the following constructs in the filename:
      • hhmm
      • hhmmss
      • yyyyMMdd
      • yyyyMMddhhmm
      • yyyyMMddhhmmss
      Parameters:
      fileName - the file-name from which to extract the time-stamp
      Returns:
      the extracted time-stamp, or null if such time-stamp couldn't be extracted