+-----------+----------+
| from_time | to_time |
+-----------+----------+
| 09:00:00 | 22:00:00 |
+-----------+----------+
1 row in set (0.00 sec)
that is my actual SQL table which is in Hours:minutes:seconds format
. when I query with select from_time, to_time from Tollapp_configure;
, in django I got the out put as ((datetime.timedelta(0, 32400), datetime.timedelta(0, 79200)),)
.
How can I convert ((datetime.timedelta(0, 32400), datetime.timedelta(0, 79200)),)
into actual Hours minutes and seconds (22:00:00 format).
My django model looks like this:
class Configure (models.Model):
from_time = models.TimeField()
to_time = models.TimeField()