Did I find the right examples for you? yes no

# sun_calc.format_hms

All Samples(11)  |  Call(8)  |  Derive(0)  |  Import(3)

```from . properties import *
from . operators import *
from . sun_calc import Degrees, format_lat_long, degToRad, \
format_time, format_hms, Move_sun

```
```            else:
Sun.RiseSetOK = True
sr = format_hms(Sun.Sunrise.time)
ss = format_hms(Sun.Sunset.time)
tsr = "Sunrise: " + sr
```
```            else:
Sun.RiseSetOK = True
sr = format_hms(Sun.Sunrise.time)
ss = format_hms(Sun.Sunset.time)
tsr = "Sunrise: " + sr
```

```import math

from . sun_calc import degToRad, format_hms
from . properties import Display, Sun

```
```        fy = text_line(fx + 40, fy, True, vColor, str(Sun.SP.Day_of_year))
fy = text_line(fx, fy, False, tColor, "Time: ")
fy = text_line(fx + 40, fy, True, vColor, format_hms(Sun.SP.Time))

if Sun.ShowRiseSet:
fy -= 10
fy = text_line(fx, fy, True, tColor, "Solar Noon:")
fy = text_line(fx + 14, fy, True,  vColor,
format_hms(Sun.SolarNoon.time))
```
```            if Sun.RiseSetOK:
fy = text_line(fx + 40, fy, True, vColor,
format_hms(Sun.Sunrise.time))
else:
fy = text_line(fx + 40, fy, True, vColor, "--------")
fy = text_line(fx, fy, False, tColor, " Set: ")
if Sun.RiseSetOK:
fy = text_line(fx + 40, fy, True, vColor,
format_hms(Sun.Sunset.time))
```

```import math