BUG: allow std to work with timedeltas (GH8471)

close #8471