What field type would you use in a dataclass where the value provided is in a time format?
The JSON file I'm parsing returns a value like this: 2.00:00:15.0830000
In a class like this below, what type should I set?
from dataclasses import dataclass
@dataclass
class Values:
duration: ???
date
type seems not to be on the list.
The reason I require a non-str
here is to calculate if the value is older than x days/hours then do something.