Skip to content

fixed faulty explanation in timefield - #1185

Merged
gosteenBASIS merged 3 commits into
mainfrom
timefields-fix
Oct 7, 2026
Merged

gosteenBASIS merged 3 commits into
mainfrom
timefields-fix

Conversation

@EHandtkeBasis

Copy link
Copy Markdown
Member

closes #1153

The `TimeField` class also provides the following static utility methods:

- `fromTime(String timeAsString)`: Convert a time string in HH:mm:ss format to a LocalTime object which can then be utilized with this class, or elsewhere.
- `fromTime(String timeAsString)`: Parse a time string, with or without seconds, into a `LocalTime` truncated to minutes.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] <Google.Colons> reported by reviewdog 🐶
'Parse' should be in lowercase.

- `fromTime(String timeAsString)`: Parse a time string, with or without seconds, into a `LocalTime` truncated to minutes.

- `toTime(LocalTime time)`: Convert a LocalTime to a time string in HH:mm:ss format.
- `toTime(LocalTime time)`: Convert a `LocalTime` to a string in `HH:mm` format, discarding seconds.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] <Google.Colons> reported by reviewdog 🐶
'Convert' should be in lowercase.

- `toTime(LocalTime time)`: Convert a `LocalTime` to a string in `HH:mm` format, discarding seconds.

- `isValidTime(String timeAsString)`: Check if the given string is a valid HH:mm:ss time. This will return a boolean value true if so, false otherwise.
- `isValidTime(String timeAsString)`: Check whether a time string is valid, including `HH:mm` and `HH:mm:ss` inputs. Returns `true` if valid and `false` otherwise.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] <Google.Colons> reported by reviewdog 🐶
'Check' should be in lowercase.

- **Accessibility**: Utilize the `TimeField` component with accessibility in mind, ensuring it meets accessibility standards such as providing proper labels, sufficient color contrast, and compatibility with assistive technologies.

- **Reset Option**: Provide a way for users to easily clear the `TimeField` to an empty or default state. No newline at end of file
- **Reset Option**: Provide a way for users to easily clear the `TimeField` to an empty or default state.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] <Google.Colons> reported by reviewdog 🐶
'Provide' should be in lowercase.

- **Provide Clear Time Format Examples**: Clearly show users the expected time format near the `TimeField`. Use examples or placeholders to help them enter the time correctly. If possible, display the time format based on the user's location.

- **Accessibility**: Utilize the `TimeField` component with accessibility in mind, ensuring it meets accessibility standards such as providing proper labels, sufficient color contrast, and compatibility with assistive technologies.
- **Accessibility**: Use the `TimeField` component with accessibility in mind, meeting accessibility standards such as proper labels, sufficient color contrast, and compatibility with assistive technologies.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [vale] <Google.Colons> reported by reviewdog 🐶
'Use' should be in lowercase.

@gosteenBASIS gosteenBASIS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; added a couple minor grammar/wording fixes to reduce Vale warnings.

@gosteenBASIS gosteenBASIS changed the title cfixed faulty explanation in timefield fixed faulty explanation in timefield Oct 7, 2026
@gosteenBASIS
gosteenBASIS merged commit 0ec872f into main Oct 7, 2026
2 checks passed
@gosteenBASIS
gosteenBASIS deleted the timefields-fix branch October 7, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-review The PR is ready. Waiting for team members to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TimeField article format statements don't match the behavior

4 participants