Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 94 characters in body
Source Link
Razetime
  • 27.6k
  • 3
  • 31
  • 77

Japt Japt, 12 bytes(削除) 12 (削除ここまで) 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.

AltStyle によって変換されたページ (->オリジナル) /