Fork me on GitHub
#babashka
<
2024-06-02
>
teodorlu13:06:26

Morning! I want to write a babashka script to generate text like:

* May 27th---May 31th
Is “just use java.time” a decent to start to get the dates right, or are there other options I should consider? I want to find the dates for Monday and Friday the last week. (I’m writing https://doingweeknotes.com/ in plain text, and I’d like to remove a bit of friction for writing. I’m aware that I could probably shell out to /bin/date to do this too, but I’d prefer to write the code myself for learning purposes.)

1
borkdude13:06:54

Yes, java.time

💯 2