public class Parser
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.lang.String> |
datePatterns
In case if anyone interesting about full set
of supported by ruby date patterns:
there no such set as the parsing there happening based on
heuristic algorithms.
|
| Constructor and Description |
|---|
Parser() |
| Modifier and Type | Method and Description |
|---|---|
static java.time.ZonedDateTime |
getZonedDateTimeFromTemporalAccessor(java.time.temporal.TemporalAccessor temporalAccessor,
java.time.ZoneId defaultZone)
Follow ruby rules: if some datetime part is missing,
the default is taken from `now` with default zone
|
static java.time.ZonedDateTime |
parse(java.lang.String str,
java.util.Locale locale,
java.time.ZoneId defaultZone) |
public static java.util.List<java.lang.String> datePatterns
public static java.time.ZonedDateTime parse(java.lang.String str,
java.util.Locale locale,
java.time.ZoneId defaultZone)
public static java.time.ZonedDateTime getZonedDateTimeFromTemporalAccessor(java.time.temporal.TemporalAccessor temporalAccessor,
java.time.ZoneId defaultZone)
Copyright © 2012–2021. All rights reserved.