# zx::basic_time

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1a86b0cdf9ffcef91f102fe80231dcc998()` ||
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1ae76f677c21348b70e43d6b1ffb73843d(zx_time_t value)` ||
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1a175b85a675f576884abbc1b4231a9bdc(std::timespec ts)` ||

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1afbd1fdbd3845bf940815240c474434cd() const ` | `constexpr zx_time_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1a7b38348fb5048f2d8874cfcafa27744a()` | `zx_time_t *` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1a6b6f61b993e5b17209ffa921f64090a5(https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId > other) const ` | `constexpr bool` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1a58192ed028bdb71f2af4fc1179600f5b(https://fuchsia.dev/reference/cpp/class/zx/duration#classzx_1_1duration delta)` | `constexpr https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId >` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1a13e68dcda8113ba76cfabcfef8822aa1(https://fuchsia.dev/reference/cpp/class/zx/duration#classzx_1_1duration delta)` | `constexpr https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId > &` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1a05a75a038f5b53133a87e438ae292a93(https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId > other)` | `constexpr https://fuchsia.dev/reference/cpp/class/zx/duration#classzx_1_1duration` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1ae0bcdc3f5e6ee6d2b666237065006971(https://fuchsia.dev/reference/cpp/class/zx/duration#classzx_1_1duration delta)` | `constexpr https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId >` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1ae7ae5ddd629a00d4d79c86d9cd4714a5(https://fuchsia.dev/reference/cpp/class/zx/duration#classzx_1_1duration delta)` | `constexpr https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId > &` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1a72517eead1e09685b79e8a7479ef4df1(https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId > other) const ` | `constexpr bool` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1adf5dca3901003e9c26da639606f891df(https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId > other) const ` | `constexpr bool` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1afcb3e23e23e7a34ddcde4bad94ba0914(https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId > other) const ` | `constexpr bool` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1a2ef4b8e7ad6b81abea033354bd9f37ce(https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId > other) const ` | `constexpr bool` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1aa1ab063636809a8cbf0334d2c9b827a3(https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId > other) const ` | `constexpr bool` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1a711ca09b4715d2db0613148b8f0bf348() const ` | `constexpr std::timespec` |

| ### Public static functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1a3d99d5840fa694bdcf26ed58673b446d()` | `constexpr https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId >` |
| `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time_1aa5f75b2da1d9b757a3351035425e3c38()` | `constexpr https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time< kClockId >` |

## Public functions

### basic_time

```c++
constexpr basic_time()=default
```

### basic_time

```c++
constexpr basic_time(
  zx_time_t value
)
```

### basic_time

```c++
constexpr basic_time(
  std::timespec ts
)
```

### get

```c++
constexpr zx_time_t get() const 
```

### get_address

```c++
zx_time_t * get_address()
```

### operator!=

```c++
constexpr bool operator!=(
  basic_time< kClockId > other
) const 
```

### operator+

```c++
constexpr basic_time< kClockId > operator+(
  duration delta
)
```

### operator+=

```c++
constexpr basic_time< kClockId > & operator+=(
  duration delta
)
```

### operator-

```c++
constexpr duration operator-(
  basic_time< kClockId > other
)
```

### operator-

```c++
constexpr basic_time< kClockId > operator-(
  duration delta
)
```

### operator-=

```c++
constexpr basic_time< kClockId > & operator-=(
  duration delta
)
```

### operator\<

```c++
constexpr bool operator<(
  basic_time< kClockId > other
) const 
```

### operator\<=

```c++
constexpr bool operator<=(
  basic_time< kClockId > other
) const 
```

### operator==

```c++
constexpr bool operator==(
  basic_time< kClockId > other
) const 
```

### operator\>

```c++
constexpr bool operator>(
  basic_time< kClockId > other
) const 
```

### operator\>=

```c++
constexpr bool operator>=(
  basic_time< kClockId > other
) const 
```

### to_timespec

```c++
constexpr std::timespec to_timespec() const 
```

## Public static functions

### infinite

```c++
constexpr basic_time< kClockId > infinite()
```

### infinite_past

```c++
constexpr basic_time< kClockId > infinite_past()
```