public class SovrenDate extends Object
- Current, as in "July 2018 - current". See IsCurrentDate
- Year only, as in "2018 - 2020". FoundYear will be true, FoundMonth and FoundDay will be false
- Year and month, as in "2018/06 - 2020/07". FoundYear and FoundMonth will be true, FoundDay will be false
- Year/month/day, as in "5/4/2018 - 7/2/2020". FoundYear, FoundMonth, and FoundDay will be true
| Modifier and Type | Field and Description |
|---|---|
java.time.LocalDate |
Date
The ISO 8601 (yyyy-MM-dd) date, if the day and/or month could not be found, they will be 01
|
boolean |
FoundDay
true if the day was found in the text (eg: June 7, 2020), otherwise false (eg: June 2020) |
boolean |
FoundMonth
true if the month was found in the text (eg: June 2020), otherwise false (eg: 2020) |
boolean |
FoundYear
true if the year was found in the text, otherwise false |
boolean |
IsCurrentDate
true if this date represents '- current' and not an actual date |
| Constructor and Description |
|---|
SovrenDate() |
public java.time.LocalDate Date
public boolean IsCurrentDate
true if this date represents '- current' and not an actual datepublic boolean FoundYear
true if the year was found in the text, otherwise falsepublic boolean FoundMonth
true if the month was found in the text (eg: June 2020), otherwise false (eg: 2020)public boolean FoundDay
true if the day was found in the text (eg: June 7, 2020), otherwise false (eg: June 2020)Copyright © 2021. All rights reserved.