# std::chrono::duration_values<Rep>::max

> C++ Atlas: `cppatlas.com/w/cpp/chrono/duration_values/max` | Source: https://en.cppreference.com/w/cpp/chrono/duration_values/max | Domain: Date and time utilities | Standards: C++11, C++20

Returns the largest possible representation.

## Official Specification Summary (cppreference)

```cpp
static constexpr Rep max(); // (since C++11) (until C++20)
static constexpr Rep max() noexcept; // (since C++20)
```

Returns the largest possible representation.

### Parameters

(none)

### Return value

`std::numeric_limits<Rep>::max()`

### See also

- [`max`](https://en.cppreference.com/w/cpp/chrono/duration/max) [static]: returns the special duration value max (public static member function of `std::chrono::duration<Rep,Period>`)
- [`zero`](https://en.cppreference.com/w/cpp/chrono/duration_values/zero) [static]: returns a zero-length representation (public static member function)
- [`min`](https://en.cppreference.com/w/cpp/chrono/duration_values/min) [static]: returns the smallest possible representation (public static member function)

---
Attribution: content from https://en.cppreference.com/w/cpp/chrono/duration_values/max (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.