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

Returns the day&hyphen;of&hyphen;year for the given (realigned) civil&hyphen;time value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
GetYearDay(xref:absl/CivilSecond.adoc[CivilSecond] cs);
----

== Description

Example&colon;

absl&colon;&colon;CivilDay a(2015, 1, 1)&semi; int yd&lowbar;jan&lowbar;1 &equals; absl&colon;&colon;GetYearDay(a)&semi; &sol;&sol; yd&lowbar;jan&lowbar;1 &equals; 1 absl&colon;&colon;CivilDay b(2015, 12, 31)&semi; int yd&lowbar;dec&lowbar;31 &equals; absl&colon;&colon;GetYearDay(b)&semi; &sol;&sol; yd&lowbar;dec&lowbar;31 &equals; 365

== Return Value

The one&hyphen;based day&hyphen;of&hyphen;year on which `cs` falls&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cs*
| The civil&hyphen;time value to inspect&period;
|===


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