For something like your Time object, a data class ...
# kotest
s
For something like your Time object, a data class makes more sense as it's a data structure, not a container for logic