> For the complete documentation index, see [llms.txt](https://docs.taiamk.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.taiamk.pro/function-ho-tro/datetime/timespan-object/timespan.gethours.md).

# Timespan.GetHours

## Giới Thiệu

Lấy ra giá trị giờ còn lại trong đối tượng TimeSpan

<figure><img src="/files/UM2Bdsa05ZWiHiNYOmhB" alt="Timespan.GetHours"><figcaption></figcaption></figure>

## Kết Quả

Ví dụ trong hình là 3 ngày 2 giờ, 24 phút, 14 giây sẽ được quy đổi theo công thức

`3 ngày * 24 giờ  = 72 giờ`

`2 giờ = 2 giờ`

`24 phút = 0 giờ`

`14 giây = 0 giờ`

Cộng tổng lại ta được 74 giờ.

<figure><img src="/files/6bPjEi7ucsywDDWhIbF5" alt="Kết quả "><figcaption><p>Kết Quả Chạy</p></figcaption></figure>
