Only those fields present in the string will be changed in the specified instant. All other fields will remain unaltered. Thus if the string only contains a year and a month, then the day and time will be retained from the input instant. If this is not the behaviour you want, then reset the fields before calling this method, or use {@link #parseDateTime(String)}or {@link #parseMutableDateTime(String)}.
If it fails, the return value is negative, but the instant may still be modified. To determine the position where the parse failed, apply the one's complement operator (~) on the return value.
The parse will use the chronology of the instant. @param instant an instant that will be modified, not null @param text the text to parse @param position position to start parsing from @return new position, negative value means parse failed -apply complement operator (~) to get position of failure @throws UnsupportedOperationException if parsing is not supported @throws IllegalArgumentException if the instant is null @throws IllegalArgumentException if any field is out of range
The parse type of the formatter is not used by this method.
If it fails, the return value is negative, but the period may still be modified. To determine the position where the parse failed, apply the one's complement operator (~) on the return value. @param period a period that will be modified @param text text to parse @param position position to start parsing from @return new position, if negative, parse failed. Apply complementoperator (~) to get position of failure @throws IllegalArgumentException if any field is out of range
The parse type of the formatter is not used by this method.
If it fails, the return value is negative, but the period may still be modified. To determine the position where the parse failed, apply the one's complement operator (~) on the return value. @param period a period that will be modified @param text text to parse @param position position to start parsing from @return new position, if negative, parse failed. Apply complementoperator (~) to get position of failure @throws IllegalArgumentException if any field is out of range
Only those fields present in the string will be changed in the specified instant. All other fields will remain unaltered. Thus if the string only contains a year and a month, then the day and time will be retained from the input instant. If this is not the behaviour you want, then reset the fields before calling this method, or use {@link #parseDateTime(String)}or {@link #parseMutableDateTime(String)}.
If it fails, the return value is negative, but the instant may still be modified. To determine the position where the parse failed, apply the one's complement operator (~) on the return value.
The parse will use the chronology of the instant. @param instant an instant that will be modified, not null @param text the text to parse @param position position to start parsing from @return new position, negative value means parse failed -apply complement operator (~) to get position of failure @throws UnsupportedOperationException if parsing is not supported @throws IllegalArgumentException if the instant is null @throws IllegalArgumentException if any field is out of range
If it fails, the return value is negative. To determine the position where the parse failed, apply the one's complement operator (~) on the return value. @param bucket field are saved into this, not null @param text the text to parse, not null @param position position to start parsing from @return new position, negative value means parse failed -apply complement operator (~) to get position of failure @throws IllegalArgumentException if any field is out of range
The parse type of the formatter is not used by this method.
If it fails, the return value is negative, but the period may still be modified. To determine the position where the parse failed, apply the one's complement operator (~) on the return value. @param period a period that will be modified @param text text to parse @param position position to start parsing from @return new position, if negative, parse failed. Apply complementoperator (~) to get position of failure @throws IllegalArgumentException if any field is out of range
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|