java.lang.Object
com.tectonica.jonix.util.TimestampParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Calendar
extractTimstampFromFileName
(String fileName) Attempts to retrieve a time-stamp from a given file-name.
-
Constructor Details
-
TimestampParser
public TimestampParser()
-
-
Method Details
-
extractTimstampFromFileName
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
-