I feel following is better.

```python
h, m, s, ms = abs(int(h)), int(m), int(s), int(ms)
td = timedelta(hours=h, minutes=m, seconds=s microseconds=ms)
```

Because to know "sign of h is meaningless", I should look `abs(h)` and h is never used after that.