[#BloombergLP-bdlt-PosixDateImpUtil-serialToYd]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/PosixDateImpUtil.adoc[PosixDateImpUtil]::serialToYd
:relfileprefix: ../../../
:mrdocs:

Load year and day&hyphen;of&hyphen;year from the given serial day&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;posixdateimputil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
serialToYd(
    int* year,
    int* dayOfYear,
    int serialDay);
----

== Description

Load, into the specified `year` and `dayOfYear`, the year&hyphen;day representation of the date value indicated by the specified `serialDay`&period; The behavior is undefined unless `true &equals;&equals; isValidSerial(serialDay)`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *year*
| destination for the year
| *dayOfYear*
| destination for the day of year
| *serialDay*
| serial day to convert
|===


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