In that case, do consider Unitful.jl
:
Incidentally, your desired code does work if you change the compound period del = Hour(1) + Minute(30)
to a simple period del = Minute(90)
.
t1 = DateTime("2023-01-01")
t2 = DateTime("2023-01-02")
del = Minute(90)
time_axis = (t1 + del/2):del:(t2 - del/2)
I wonder why using a compound period as a range step isn’t implemented? Perhaps we can get it added!