Předłoha:Staroba w lětach a dnjach/Dokumentacija
z Kitakija
(rozdźěl mjez wersijomaj)
Wersija z 16:04, 16. now 2007
Tuta předłoha wróća ličbu połnych lět a zbytnych dnjow mjez dwěmaj podatymaj datumomaj. Jeli so druha sadźba parametrow so wuwostaji, budźe so ličba połnych lět a zbytnych dnjow mjez podatym datumom a aktualnym datumom wróćeć.
- Syntaksa:
- {{Staroba w lětach a dnjach|lěto1|měsac1|dźeń1|lěto2|měsac2|dźeń2}} abo
- {{Staroba w lětach a dnjach|lěto1|měsac1|dźeń1}}
- Přikłady:
- {{Staroba w lětach a dnjach|1989|7|23|2003|7|14}} wróća "13 lět, 356 dnjow"
- {{Staroba w lětach a dnjach|1989|7|23}} wróća "35 lět, 127 dnjow"
- When using this template to calculate a person's age at death or a person's age on a specified date (rather than the person's current age), please substitute it into the page.
- Example: {{subst:age in years and days|1989|7|23|2003|7|14}}
- Note:
- This template does not check for incorrect input:
- {{age in years and days|1980|7|14|1993|6|233}} returns "Předłoha:Age in years and days" (surplus days do not count as extra months)
- {{age in years and days|1980|7|14|1993|88|14}} returns "Předłoha:Age in years and days" (surplus months do not count as extra years)
Note also that due to leap years the measure "years and days" fails to be fully additive:
- {{age in years and days|2007|2|27|2008|3|2}} returns "Předłoha:Age in years and days"
but split up:
- {{age in years and days|2007|2|27|2007|3|2}} returns "Předłoha:Age in years and days"
- {{age in years and days|2007|3|2|2008|3|2}} returns "Předłoha:Age in years and days"
See also
- {{age}} — Age in years
- {{age in days}} — Age in days
- {{date}} — Today's date