Embed Datetime
The current year, delivered by iframe.
Your site already knows what year it is. We would still like to tell it. Paste one line and a remote server will work it out for you.
Theme
Size
<iframe src="https://datetime.app/embed/year?theme=light" width="100%" height="120" style="border:0" title="Current year"></iframe>Specifications
Numbers we are comfortable standing behind.
Latency
~140 ms
to learn a thing your device knew
Uptime
99.99%
the year is very reliable
Requests
1 / load
per visitor, per year
Payload
0 KB
figuratively
Compared
Without Embed Datetime
new Date().getFullYear() — instant, offline, free.
With Embed Datetime
An iframe, a network round trip and a dependency. Same answer.
Questions
Why would I need this?
You would not. That is the charm.
Is it accurate?
Yes. It is the year.
What happens on New Year's Eve?
At midnight UTC we change it. Your visitors will be notified by the calendar.
Can I style it?
Choose light or dark, and one of three sizes via query parameters.
Will it work offline?
No. Your browser will, regrettably, remember the year.