Template:Age

From LCARS
Revision as of 13:06, 20 August 2016 by Pond (talk | contribs)

Usage

{{Birthdate_and_Age|YEAR|MM|DD}}

Calculates the age of a person given their birthdate in real time. Intended for use from within Template:Player Birthdate and Age.

Notes

  • This template determines age by subtracting the given date in Unix seconds from the current time. It then performs an approximate correction to account for a leap day every 4 years, so it may be off by ±1 day.