fd::convert_weekday — Convert a 0-based weekday number from one reference system to another.
// In header: <fd/date_time.h> constexpr int convert_weekday(int weekday, iso_weekday_value inputFirstDow, iso_weekday_value outputFirstDow);
Parameters:
inputFirstDow
First day of week according to ISO 8601.
outputFirstDow
weekday
0-based weekday number.
Returns:
Converted weekday number modulo 7.