# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.taiamk.pro/function-ho-tro/datetime/timespan-object/timespan.gethours.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
