Follow

painting myself into a corner in kotlin 

I want to be able to do `Date at Time`.

The first part is easy enough: `infix fun Date.at(time: Time): DateTime`.

But how do I do 24-hour time nicely? If it's normally said in English as "1500 (fifteen hundred) hours", then I can't do `val Int.hours: Time get() = Time(this / 100, this % 100)` because that's already defined for making a `Duration` :/

Web 0 0 0
Sign in to participate in the conversation
Cybrespace

锝冿綑锝傦綊锝咃綋锝愶絹锝冿絽: the social hub of the information superhighway jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal support us on patreon or liberapay!