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

replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

PowerShell, (削除) 87 (削除ここまで) 77 bytes

Saved 10 bytes thanks to John L. Bevan John L. Bevan

$d=date;0..86399|%{$d+=1e7l;"$d".Split()[1]}|?{("{0:H+m+s}"-f$d|iex)-in$args}

Try it online! (this will time out, it's very slow)

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.

PowerShell, (削除) 87 (削除ここまで) 77 bytes

Saved 10 bytes thanks to John L. Bevan

$d=date;0..86399|%{$d+=1e7l;"$d".Split()[1]}|?{("{0:H+m+s}"-f$d|iex)-in$args}

Try it online! (this will time out, it's very slow)

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.

PowerShell, (削除) 87 (削除ここまで) 77 bytes

Saved 10 bytes thanks to John L. Bevan

$d=date;0..86399|%{$d+=1e7l;"$d".Split()[1]}|?{("{0:H+m+s}"-f$d|iex)-in$args}

Try it online! (this will time out, it's very slow)

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.

deleted 71 characters in body
Source Link
briantist
  • 3.3k
  • 16
  • 21

PowerShell, 87(削除) 87 (削除ここまで) 77 bytes

Saved 10 bytes thanks to John L. Bevan

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

Try it online! Try it online! (so far this has hit the 60 second timeout for me everythis will time out, but on my machine it runs in under 10 secondsit's very slow)

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.

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.

PowerShell, (削除) 87 (削除ここまで) 77 bytes

Saved 10 bytes thanks to John L. Bevan

$d=date;0..86399|%{$d+=1e7l;"$d".Split()[1]}|?{("{0:H+m+s}"-f$d|iex)-in$args}

Try it online! (this will time out, it's very slow)

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.

added 167 characters in body
Source Link
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.

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)

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.

Source Link
briantist
  • 3.3k
  • 16
  • 21
Loading

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