DEV Community

Cover image for Never manually change your copyright date again with this innovative cloud-based API. ๐Ÿ—“
Adam Greenough
Adam Greenough

Posted on โ€ข Edited on

Never manually change your copyright date again with this innovative cloud-based API. ๐Ÿ—“

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.

Read more...

PS. Just in case โ€“ yes, this is satire!

Top comments (6)

Collapse
ย 
jonrandy profile image
Jon Randy ๐ŸŽ–๏ธ โ€ข

I'm really not sure if you're joking

Collapse
ย 
adamgreenough profile image
Adam Greenough โ€ข โ€ข Edited

The terms of use should clear things up. But it's a sad time in webdev that it is hard to tell. ๐Ÿ˜†

Collapse
ย 
shirobachi profile image
Shirobachi โ€ข

I Hope he's

Collapse
ย 
lionelrowe profile image
lionel-rowe โ€ข

Now all you need is an NPM package for it.

Collapse
ย 
yashvant profile image
yashvant vala โ€ข

What is the need of this, We can use Date object using javascript

Collapse
ย 
adamgreenough profile image
Adam Greenough โ€ข

This is explained in the FAQ