## DateTimeOffset::operator-(const DateTimeOffset\&) const method


현재 객체와 지정된 객체가 나타내는 날짜 및 시간 값 사이의 시간 간격을 나타내는 [TimeSpan](../../timespan/) 클래스의 인스턴스를 반환합니다.

```cpp
TimeSpan System::DateTimeOffset::operator-(const DateTimeOffset &other) const
```


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| other | const DateTimeOffset\& | 계산될 구간의 한쪽 끝을 표시하는 [DateTime](../../datetime/) 클래스의 인스턴스 |

### ReturnValue

현재 객체와 **other**가 나타내는 날짜 및 시간 값 사이의 시간 간격을 나타내는 [TimeSpan](../../timespan/) 클래스의 인스턴스.

## 또 보기

* Class [TimeSpan](../../timespan/)
* Class [DateTimeOffset](../)
* Class [DateTimeOffset](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## DateTimeOffset::operator-(TimeSpan) const method


현재 객체가 나타내는 값에서 지정된 시간 간격을 빼서 얻은 날짜 및 시간 값을 나타내는 [DateTimeOffset](../) 클래스의 새 인스턴스를 반환합니다.

```cpp
DateTimeOffset System::DateTimeOffset::operator-(TimeSpan value) const
```


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| value | TimeSpan | 빼기 위한 시간 간격 |

### ReturnValue

현재 객체가 나타내는 값에서 **value**를 빼서 얻은 날짜 및 시간 값을 나타내는 [DateTimeOffset](../) 클래스의 새 인스턴스.

## 또 보기

* Class [DateTimeOffset](../)
* Class [TimeSpan](../../timespan/)
* Class [DateTimeOffset](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
