User:Jsg04/HT age: Difference between revisions

From Hattrick
Jump to navigationJump to search
Jsg04 (talk | contribs)
Helper: Hattrick player age from day zero
 
Jsg04 (talk | contribs)
day/days
 
Line 1: Line 1:
<includeonly>{{#expr: floor(({{#time:U|{{{asof|now}}}}} - {{#time:U|{{{1}}}}}) / 9676800)}}{{#if:{{{days|}}}|&nbsp;({{#expr: floor(({{#time:U|{{{asof|now}}}}} - {{#time:U|{{{1}}}}}) / 86400) mod 112}}&nbsp;days)}}</includeonly><noinclude>
<includeonly>{{#expr: floor(({{#time:U|{{{asof|now}}}}} - {{#time:U|{{{1}}}}}) / 9676800)}}{{#if:{{{days|}}}|&nbsp;({{#expr: floor(({{#time:U|{{{asof|now}}}}} - {{#time:U|{{{1}}}}}) / 86400) mod 112}}&nbsp;{{#ifexpr: {{#expr: floor(({{#time:U|{{{asof|now}}}}} - {{#time:U|{{{1}}}}}) / 86400) mod 112}} = 1|day|days}})}}</includeonly><noinclude>
Hattrick player age from the player's "day zero" (the date he was 0 years and 0 days old). Hattrick years are 112 days.
Hattrick player age from the player's "day zero" (the date he was 0 years and 0 days old). Hattrick years are 112 days.



Latest revision as of 00:47, 31 October 2026

Hattrick player age from the player's "day zero" (the date he was 0 years and 0 days old). Hattrick years are 112 days.

Usage: {{User:Jsg04/HT age|2018-07-23}} → current age in years. Add days=yes for days, and asof=YYYY-MM-DD for a fixed snapshot (season pages).

Day zero = date of an age reading − (years × 112 + days) days.

Example: 26 (109 days) (Jalen LaChapelle on 10/30/2026: 26 years and 109 days)