Skip to main content
added 40 characters in body
Source Link
user100947
user100947

Bash, 2816 bytes

date -d@$[`date +%s`+$1]d$1sec +%Y 

Try it online!Try it online!

Credits

  • Saved 12 bytes thanks to @manatwork

Bash, 28 bytes

date -d@$[`date +%s`+$1] +%Y 

Try it online!

Bash, 16 bytes

date -d$1sec +%Y 

Try it online!

Credits

  • Saved 12 bytes thanks to @manatwork
Source Link
user100947
user100947

Bash, 28 bytes

date -d@$[`date +%s`+$1] +%Y 

Try it online!