# std::common_type<std::chrono::time_point>

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

Exposes the type named type, which is the common type of two std::chrono::time_points.

## Official Specification Summary (cppreference)

```cpp
template< class Clock, class Duration1, class Duration2 >
struct common_type<std::chrono::time_point<Clock, Duration1>,
                   std::chrono::time_point<Clock, Duration2>>; // (since C++11)
```

Exposes the type named `type`, which is the common type of two `std::chrono::time_point`s.

### Member types

**Member type — Definition**

- `type`: `std::chrono::time_point<Clock, typename std::common_type<Duration1, Duration2>::type>`

### Notes

The common type of two `std::chrono::time_point` types is a `std::chrono::time_point` with the same clock as the two types and the `std::common_type` of their durations.

### Example

> Note: This section is incomplete Reason: no example

### See also

- [`std::common_type<std::chrono::duration>`](https://en.cppreference.com/w/cpp/chrono/duration/common_type) (C++11): specializes the `std::common_type` trait (class template specialization)
- [`common_type`](https://en.cppreference.com/w/cpp/types/common_type) (C++11): determines the common type of a group of types (class template)

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