[#absl-NextWeekday]
= xref:absl.adoc[absl]::NextWeekday
:relfileprefix: ../
:mrdocs:

Returns the absl&colon;&colon;CivilDay that strictly follows a given absl&colon;&colon;CivilDay, and that falls on the given absl&colon;&colon;Weekday&period;

== Synopsis

Declared in `&lt;absl&sol;time&sol;civil&lowbar;time&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:absl/CivilDay.adoc[CivilDay]
NextWeekday(
    xref:absl/CivilDay.adoc[CivilDay] cd,
    xref:absl/Weekday.adoc[Weekday] wd);
----

== Description

Example, given the following month&colon;

August 2015 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

absl&colon;&colon;CivilDay a(2015, 8, 13)&semi; &sol;&sol; absl&colon;&colon;GetWeekday(a) &equals;&equals; absl&colon;&colon;Weekday&colon;&colon;thursday absl&colon;&colon;CivilDay b &equals; absl&colon;&colon;NextWeekday(a, absl&colon;&colon;Weekday&colon;&colon;thursday)&semi; &sol;&sol; b &equals; 2015&hyphen;08&hyphen;20 absl&colon;&colon;CivilDay c &equals; absl&colon;&colon;PrevWeekday(a, absl&colon;&colon;Weekday&colon;&colon;thursday)&semi; &sol;&sol; c &equals; 2015&hyphen;08&hyphen;06

absl&colon;&colon;CivilDay d &equals; &period;&period;&period; &sol;&sol; Gets the following Thursday if d is not already Thursday absl&colon;&colon;CivilDay thurs1 &equals; absl&colon;&colon;NextWeekday(d &hyphen; 1, absl&colon;&colon;Weekday&colon;&colon;thursday)&semi; &sol;&sol; Gets the previous Thursday if d is not already Thursday absl&colon;&colon;CivilDay thurs2 &equals; absl&colon;&colon;PrevWeekday(d &plus; 1, absl&colon;&colon;Weekday&colon;&colon;thursday)&semi;

== Return Value

The first civil day strictly after `cd` that falls on `wd`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cd*
| The civil day to start from&period;
| *wd*
| The weekday to look for&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
