PrevUpHomeNext

Function convert_weekday

fd::convert_weekday — Convert a 0-based weekday number from one reference system to another.

Synopsis

// In header: <fd/date_time.h>


constexpr int 
convert_weekday(int weekday, iso_weekday_value inputFirstDow, 
                iso_weekday_value outputFirstDow);

Description

Parameters:

inputFirstDow

First day of week according to ISO 8601.

outputFirstDow

First day of week according to ISO 8601.

weekday

0-based weekday number.

Returns:

Converted weekday number modulo 7.


PrevUpHomeNext