Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 24-hour format option to use Time hook for clarity #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amir-rahmanii
Copy link

Description:

This PR explicitly adds the 24-hour format option to the useTime hook. Previously, the 24-hour format was the default but was not explicitly mentioned. This change improves clarity by making the format option clear in the code.

Changes:

  • Added explicit support for the 24-hour format option in the useTime hook.
  • Updated documentation to reflect the default format and the available options.

Why this change:

This change helps improve code readability and clarity, ensuring that the default format is explicitly defined as 24-hour while still supporting the 12-hour format option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant