absl::PrevWeekday

Returns the absl::CivilDay that strictly precedes a given absl::CivilDay, and that falls on the given absl::Weekday.

Synopsis

Declared in <absl/time/civil_time.h>

CivilDay
PrevWeekday(
    CivilDay cd,
    Weekday wd);

Return Value

The first civil day strictly before cd that falls on wd.

Parameters

NameDescription
cdThe civil day to start from.
wdThe weekday to look for.