Skip to content

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

New issue

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

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

Already on GitHub? # to your account

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.

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

Successfully merging this pull request may close these issues.

1 participant