/o
\T@/4&;'-.C+n
在线尝试!
假设在时区设置为UTC的计算机上运行(例如TIO服务器)。
说明
在顺序模式下,IP在程序中沿对角线上下反弹。在基数模式下,IP像大多数其他Fungeoid一样环绕边缘。
/ Reflect to SE. Switch to Ordinal.
T Push a string representing the current date and time, in the format:
YYYY-MM-DDTHH:MM:SS.mmm±AA:BB
/ Reflect to E. Switch to Cardinal.
4& Run the next command 4 times.
; Discard four elements from the top of the stack. Since we're in Cardinal mode,
this attempts to discard four integers. But the top stack value is a string so
it gets implicitly converted to all the integers contained in the string. So
year, month, day, hour, minute, seconds, milliseconds, timezone hour,
timezone minute will be pushed separately. Then the last four of these
will be discarded, so that we end up with the minute and the hour on
top of the stack.
' Push 21.
- Subtract it from the minutes. Gives something negative for minutes 0 to 20.
.C Compute the binomial coefficient n-choose-n. This gives 0 for negative
results and 1 for non-negative ones. SE is down if both this value and
the current hour are zero.
+ Add the two values. Iff they are both zero, we still get a zero.
n Logical NOT of the value. Turns 0 into 1 and everything else into 0.
\ Reflect to NE. Switch to Ordinal.
o Implicitly convert the result to a string and print it.
@ Terminate the program.
sudo time <insert time here> && echo true