AngryMaid
angrymaid.bsky.social
AngryMaid
@angrymaid.bsky.social
Tbh that's just me being lazy :p cause logs that I parse only provide time, but in situations like 23h going to 00h it is always considered a new day. I'm trying to get duration like in the screenshot between two civil::Time structs, abs and +1 day is only a hack for negative span.
December 28, 2024 at 6:42 AM
I would say just slapping the 23h one with current day and 0h one with day+1 but this also feels like a cheap hack.
Also why civil::Time doesn't have total like Span does? Just a genuine question
December 28, 2024 at 1:00 AM
I have a question for which I thought it would be too stupid to create a gh issue. I have a case where I need to calculate a Duration/Span between 2 times and I don't know what's the best way to do that... For now I have this wonk and I have too many doubts with it.
December 28, 2024 at 12:57 AM