Skip to content

Add /time endpoint returning current server time in ISO8601#5

Open
xyaz1313 wants to merge 2 commits intosweetlife999:masterfrom
xyaz1313:add-time-endpoint
Open

Add /time endpoint returning current server time in ISO8601#5
xyaz1313 wants to merge 2 commits intosweetlife999:masterfrom
xyaz1313:add-time-endpoint

Conversation

@xyaz1313
Copy link
Copy Markdown

Closes #2

Added a new GET endpoint /time that returns the current server time in ISO8601 format.

Example response: {"time": "2026-04-14T01:57:51.123456"}

Changes:

  • Added datetime import
  • Added /time endpoint using datetime.now().isoformat()

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.

Add a new GET endpoint that returns the current server time

1 participant