# The return value of ra.to\_string(sep='hms') is incorrect

**URL:** <https://community.openastronomy.org/t/the-return-value-of-ra-to-string-sep-hms-is-incorrect/1029>\
**Category:** Development\
**Created:** [June 30, 2024, 9:24am UTC](https://community.openastronomy.org/t/the-return-value-of-ra-to-string-sep-hms-is-incorrect/1029 "2024-06-30T09:24:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccc](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@ccc](https://community.openastronomy.org/u/ccc)\
**Post date:** [June 30, 2024, 9:24am UTC](https://community.openastronomy.org/t/the-return-value-of-ra-to-string-sep-hms-is-incorrect/1029/1 "2024-06-30T09:24:07Z")

</div>

```auto
from astropy.coordinates import SkyCoord
c = SkyCoord('15h34m57.1s +23d30m11s',frame='icrs',equinox='J2000')
print(c.ra.to_string(sep='hms'))

```

The output result is like this, which is obviously incorrect.

```auto
233h44m16.5s

```

Is this a bug or am I using it incorrectly?
