Package com.sk89q.worldedit.util.time
Interface SnapshotDateTimeParser
- All Known Implementing Classes:
FileNameDateTimeParser
,ModificationDateTimeParser
public interface SnapshotDateTimeParser
Instances of this interface try to determine an
ZonedDateTime
from a given
Path
.-
Method Summary
Modifier and TypeMethodDescriptiondetectDateTime
(Path path) Attempt to detect an ZonedDateTime from a path.
-
Method Details
-
detectDateTime
Attempt to detect an ZonedDateTime from a path.The path is not guaranteed to exist.
- Parameters:
path
- the path- Returns:
- date-time, if it can be parsed
-