I made this a few months back as a fun little project and it has absolutely no utility whatsoever.
The server returns the current time in the request's status code — i.e., as long as the time can be mapped to a valid HTTP status code (e.g., 4:04pm -> 404 Not found) the server returns that status code for the request.
The httpclock.com domain detects timezone by IP and redirects to the respective subdomain such as pt.httpclock.com (but will fall back to UTC)
A browser will show a blank page for most of the day given the number of valid status codes, but you can check other timezone subdomains, e.g. `curl -I https://cet.httpclock.com`
Note: "Invalid" times will return 999 with no content.
Anyway, I hope you enjoy this very useless clock. I plan to post the code on GitHub soon since I may as well. Thanks!
The server returns the current time in the request's status code — i.e., as long as the time can be mapped to a valid HTTP status code (e.g., 4:04pm -> 404 Not found) the server returns that status code for the request.
Example: https://x.com/scottinallcaps/status/1827211120194486597
The httpclock.com domain detects timezone by IP and redirects to the respective subdomain such as pt.httpclock.com (but will fall back to UTC)
A browser will show a blank page for most of the day given the number of valid status codes, but you can check other timezone subdomains, e.g. `curl -I https://cet.httpclock.com`
Note: "Invalid" times will return 999 with no content.
Anyway, I hope you enjoy this very useless clock. I plan to post the code on GitHub soon since I may as well. Thanks!