std::chrono::weekday::c_encoding, std::chrono::weekday::iso_encoding

From cppreference.com
< cpp‎ | chrono‎ | weekday
 
 
Utilities library
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++17)

Elementary string conversions
(C++17)
(C++17)
 
Date and time utilities
(C++11)
(C++11)
Time of day
(C++20)



(C++20)(C++20)(C++20)(C++20)
Clocks
(C++20)
                                             
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Calendars
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
Time zones
(C++20)
(C++20)
(C++20)
(C++20)
C-style date and time
 
 
constexpr unsigned c_encoding() const noexcept;
(1) (since C++20)
constexpr unsigned iso_encoding() const noexcept;
(2) (since C++20)
1) Returns the weekday value stored in *this.
1) Returns the weekday value stored in *this, except that Sunday (stored as 0) is interpreted as 7 according to ISO 8601.

Return value

1) The weekday value stored in *this.
2) c_encoding() == 0u ? 7u : c_encoding().