Matas Lauzadis
12/19/2024, 11:13 PM23:59:60
) which needs to subtract one second (becoming 23:59:59
). I have a function: private fun WithTime.secondOrleapSecond() = alternativeParsing({ second() }) { chars("60") }
. This can parse the leap seconds without crashing, but (understandably) returns 23:59:0
. How can I set seconds = 59
in this case? I found a GitHub issue about leap seconds, there was a hint of a solution but none offered.Dmitry Khalanskiy [JB]
12/20/2024, 7:08 AMMatas Lauzadis
12/20/2024, 9:39 PM