time
time copied to clipboard
Formatting for quarters
There is now https://hackage.haskell.org/package/time-1.14/docs/Data-Time-Calendar-Quarter.html (yay!) but I don't see a way to do this:
> formatTime defaultTimeLocale "%Y-Q%Quarter" (fromGregorian 2024-04-30)
2024-Q2
I think all the single letters are taken, so probably use %EQ
or %Eq
for this.