public final class LocalDateTimeOf extends Object implements Scalar<LocalDateTime>
LocalDateTime
instances.Constructor and Description |
---|
LocalDateTimeOf(CharSequence date)
Parses ISO date to create
LocalDateTime instances. |
LocalDateTimeOf(CharSequence date,
DateTimeFormatter formatter)
Parses the date using the formatter to create
LocalDateTime instances. |
LocalDateTimeOf(CharSequence date,
String format)
Parses date using the provided format to create
LocalDateTime instances. |
public LocalDateTimeOf(CharSequence date)
LocalDateTime
instances.date
- The date to parse.public LocalDateTimeOf(CharSequence date, String format)
LocalDateTime
instances.date
- The date to parse.format
- The format to use.public LocalDateTimeOf(CharSequence date, DateTimeFormatter formatter)
LocalDateTime
instances.date
- The date to parse.formatter
- The formatter to use.public LocalDateTime value()
Scalar
value
in interface Scalar<LocalDateTime>
Copyright © 2017–2022 Cactoos. All rights reserved.