.. _functx_last-day-of-year: ======================= functx:last-day-of-year ======================= O último dia do ano de uma data Descrição ~~~~~~~~~ A função functx:last-day-of-year devolve o último dia do ano de $date, como xs:date. O argumento $date precisa poder ser convertido em xs:date, ou seja, ser do tipo xs:date ou xs:dateTime, ou uma xs:string ou um valor sem tipo no formato AAAA-MM-DD. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - date:date() - a data Exemplos ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - functx:last-day-of-year(xs:date('2004-01-23')) - 2004-12-31 * - functx:last-day-of-year(xs:dateTime('2004-12-23T12:00:13')) - 2004-12-31 * - functx:last-day-of-year('2004-03-23') - 2004-12-31 Depende de ~~~~~~~~~~ * :ref:`functx_date`. * :ref:`functx_days-in-month`. Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_first-day-of-year`. * :ref:`functx_last-day-of-month`.