> For the complete documentation index, see [llms.txt](https://documentation.soulver.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.soulver.app/ko/undefined/time/clock-time-calculations.md).

# 시계 시간 계산

시각은 일반적으로 콜론(:)으로 형식화된 시간의 한 순간을 의미합니다 (hh:mm)

### 시각에 시간 더하기 또는 빼기

<pre><code><strong>now + 3 hours 15 minutes                | 6:26 pm
</strong>9:45 am - 15 hours 10 minutes | Yesterday at 6:35 pm
16:00 + 3 hours 12 minutes             | 7:12 pm
</code></pre>

{% hint style="info" %}
시각 계산 시 일광 절약 시간이 고려되며, 일광 절약 시간이 변경되는 날에는 예상치 못한 결과를 발견할 수 있습니다.
{% endhint %}

### 두 시각 사이의 간격 찾기

```
7:30am to 8:45pm | 13 hours 15 min
4pm to 3am    | 11 hours
```

### 시각 계산 시 마이너스(-) 연산자 사용의 모호성

안타깝게도, 마이너스 연산자는 시각 계산에서 모호할 수 있습니다.

우리 중 다수는 이를 **첫 번째 시각**부터 **두 번째 시각**(미래의 시간)까지의 \_**시간 범위**\_를 나타내는 데 사용합니다:

`5pm - 9pm` (오후 5시부터 오후 9시까지)

하지만 우리 중 다수는 이를 첫 번째 시각에서 두 번째 시각을 ***빼는*** 것을 표현하는 데 사용하기도 합니다:

`5pm - 3pm` (오후 5시에서 오후 3시를 뺌)

Soulver는 사용자가 선택한 특정 시각을 바탕으로 사용자가 의도한 바를 해석하기 위해 최선을 다합니다:

<pre><code>/// Get the amount of time between these two clock times today
5pm - 7pm         | 2 hours
<strong>5pm - 2pm | 3 hours
</strong>
// This is interpreted as 4 pm today back to 3am earlier this morning
4pm - 3am         | 13 hours

/// This is interpreted as 3am earlier this morning to 4pm today
3am - 4pm         | 13 hours
</code></pre>

가장 예측 가능한 결과를 얻으려면 [두 시각 사이의 간격 찾기](#finding-the-interval-between-two-clock-times)에서 설명한 "to" 연산자를 사용하세요.
