IsoDateTimeParser

com.netflix.atlas.core.util.IsoDateTimeParser

Helper for parsing the variations of ISO date/time formats that are used with Atlas. Since the DateTimeFormatter doesn't have a way to check if a string matches, this class uses pattern matching to normalize to a small number of cases (with and without zone) and avoid using exceptions as the control flow.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def parse(str: String, tz: ZoneId): ZonedDateTime