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 Revisions

2 of 4
added 167 characters in body
briantist
  • 3.3k
  • 16
  • 21

PowerShell, 87 bytes

$d=date;0..86399|%{$d+=10000000;"$d".Split()[1]}|?{$d.Hour+$d.Minute+$d.Second-in$args}

Try it online! (so far this has hit the 60 second timeout for me every time, but on my machine it runs in under 10 seconds)

Explanation

Pretty simple, starting with the current [datetime], add 1 second 86,399 times, format as a string, then keep only the ones where sum adds up.

briantist
  • 3.3k
  • 16
  • 21

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