absl::GetWeekday

Returns the absl::Weekday for the given (realigned) civil-time value.

Synopsis

Declared in <absl/time/civil_time.h>

Weekday
GetWeekday(CivilSecond cs);

Description

Example:

absl::CivilDay a(2015, 8, 13); absl::Weekday wd = absl::GetWeekday(a); // wd == absl::Weekday::thursday

Return Value

The weekday on which cs falls.

Parameters

NameDescription
csThe civil-time value to inspect.