.. _year-from-date: ============== year-from-date ============== O ano de uma data Descrição ~~~~~~~~~ A função fn:year-from-date devolve o ano de um valor xs:date, como inteiro. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - arg:date() - a data de onde ler o ano Exemplos ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - year-from-date(xs:date('2006-08-15')) - 2006 Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`year-from-dateTime`.