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

Name

Description

cs

The civil‐time value to inspect.

Created with MrDocs