Fed up of changing your websites copyright date by hand EVERY year? Looking to offload complex date calculations to the cloud? Travelled here from the future and looking for a definitive confirmation of the current year? This FREE current year API is here to help.
https://current-year-api.addy.codes/
API Documentation
Basic Usage
If you don't need to factor in timezones and are content using UTC, the basic usage is the simplest way to get up and running with the Current Year API. Simply make a request to the API URL with your preferred method to receive the current year in JSON format.
https://current-year-api.addy.codes/what-year-is-it
Advanced Usage
For those that need accurate current year calculations based on timezone data, you can add a timezone parameter.
PS. Just in case – yes, this is satire!
Top comments (6)
I'm really not sure if you're joking
The terms of use should clear things up. But it's a sad time in webdev that it is hard to tell. 😆
I Hope he's
Now all you need is an NPM package for it.
What is the need of this, We can use Date object using javascript
This is explained in the FAQ