Skip to main content
added 94 characters in body
Source Link
Razetime
  • 27.6k
  • 3
  • 31
  • 77

JaptJapt, 12 bytes12 10 bytes

ÐKj +U*1e3 +Ue3)i 

Try it online!Try it

-2 bytes from AZTECCO.

This transpiles to the following JS:

new Date(K.j() + U * 1e3).i() 

where K.j() is the current time converted to milliseconds, U is the input, and .i() gets the year from the date constructor.

Japt, 12 bytes

ÐKj +U*1e3 i 

Try it online!

This transpiles to the following JS:

new Date(K.j() + U * 1e3).i() 

where K.j() is the current time converted to milliseconds, U is the input, and .i() gets the year from the date constructor.

Japt, 12 10 bytes

ÐKj +Ue3)i 

Try it

-2 bytes from AZTECCO.

This transpiles to the following JS:

new Date(K.j() + U * 1e3).i() 

where K.j() is the current time converted to milliseconds, U is the input, and .i() gets the year from the date constructor.

Source Link
Razetime
  • 27.6k
  • 3
  • 31
  • 77

Japt, 12 bytes

ÐKj +U*1e3 i 

Try it online!

This transpiles to the following JS:

new Date(K.j() + U * 1e3).i() 

where K.j() is the current time converted to milliseconds, U is the input, and .i() gets the year from the date constructor.