Skip to content

Commit

Permalink
Add documentation for new methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Haraldsen committed Jan 30, 2024
1 parent d679e9b commit b8aac86
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/com/ethlo/time/ITU.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,24 @@ public static DateTime parseLenient(String text)
return ITUParser.parseLenient(text, ParseConfig.DEFAULT, 0);
}

/**
* Allows parsing leniently with {@link ParseConfig to control some aspects of the parsing}
* @param text The text to parse
* @param parseConfig The configuration to use for parsing
* @return The date-time parsed
*/
public static DateTime parseLenient(String text, ParseConfig parseConfig)
{
return ITUParser.parseLenient(text, parseConfig, 0);
}

/**
*
* @param text The text to parse
* @param parseConfig The configuration to use for parsing
* @param position The position to start parsing from. The index (and the errorIndex, if an error occurs) is updated after the parsing process has completed
* @return The date-time parsed
*/
public static DateTime parseLenient(String text, ParseConfig parseConfig, ParsePosition position)
{
try
Expand Down

0 comments on commit b8aac86

Please sign in to comment.