In case anyone else isn't using an input downloade...
# advent-of-code
c
In case anyone else isn't using an input downloader: I've written something up in kotlin/ktor that will a) download the input if it should exist b) throw if you're too early or c) when called just before releases, wait until the clock strikes midnight EST ( + delay), then grabs it. All using suspend fun + coroutines. Will probably add an auto-submitter and checker later. https://github.com/CognitiveGear/AdventOfCode-Kotlin/blob/main/common/src/main/kotlin/Utils.kt
🙌 1
e
I made and used this script last year: https://github.com/ephemient/aoc2021/blob/main/get-inputs.main.kts doesn't use ktor or coroutines, but does report to the terminal how long it's waiting for
(I replaced it with a Python script in my repo for this year because the startup time is much better than kotlinscript though)
c
Ahh you made it a command line app
e
anyhow, one thing you might want to copy is
ZoneOffset.ofHours(-5)
which doesn't rely on tzdb 🙂
c
That...makes more sense 😛