hi, i have a question i want to convert hours to a datetime object like "%D;%H;%M. i tried something but it does not work any help
def convert_duration(self, to_format):
# hours are float like 399.634
duration = timedelta(hours=self.duration_hours)
formateerd = datetime.strftime(duration, to_format)
return formateerd