Skip to content

last_spec

Header: chrono.h
From: 20.41.0
Similar to: std::chrono::last_spec

last_spec is a tag type that is used in conjunction with other calendar types to indicate the last thing in a sequence.

struct last_spec
{
  explicit last_spec() = default;
};

inline constexpr last_spec last{};

Example

2025_y/March/last for last day of March 2025 i.e. 2025-03-31