public class OffsetDateTimeOf extends Object implements Scalar<OffsetDateTime>
OffsetDateTime
instances.Scalar.NoNulls<T>
Constructor and Description |
---|
OffsetDateTimeOf(String date)
Parses ISO date to create
OffsetDateTime instances. |
OffsetDateTimeOf(String date,
DateTimeFormatter formatter)
Parses the date using the formatter to create
OffsetDateTime instances. |
OffsetDateTimeOf(String date,
String format,
ZoneOffset offset)
Parses date using the provided format to create
OffsetDateTime instances. |
public OffsetDateTimeOf(String date)
OffsetDateTime
instances.date
- The date to parse.public OffsetDateTimeOf(String date, String format, ZoneOffset offset)
OffsetDateTime
instances.date
- The date to parse.format
- The format to use.offset
- The offset to use.public OffsetDateTimeOf(String date, DateTimeFormatter formatter)
OffsetDateTime
instances.date
- The date to parse.formatter
- The formatter to use.public final OffsetDateTime value() throws Exception
Scalar
value
in interface Scalar<OffsetDateTime>
Exception
- If failsCopyright © 2017 Cactoos. All rights reserved.