[#absl-GetYearDay] = xref:absl.adoc[absl]::GetYearDay :relfileprefix: ../ :mrdocs: Returns the day‐of‐year for the given (realigned) civil‐time value. == Synopsis Declared in `<absl/time/civil_time.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int GetYearDay(xref:absl/CivilSecond.adoc[CivilSecond] cs); ---- == Description Example: absl::CivilDay a(2015, 1, 1); int yd_jan_1 = absl::GetYearDay(a); // yd_jan_1 = 1 absl::CivilDay b(2015, 12, 31); int yd_dec_31 = absl::GetYearDay(b); // yd_dec_31 = 365 == Return Value The one‐based day‐of‐year on which `cs` falls. == Parameters [cols="1,4"] |=== | Name| Description | *cs* | The civil‐time value to inspect. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#