User blog:JoshuaJSlone/Age testing

This is a post for testing. I saw Maopyon mention in an edit note about how the age template doesn't align with JST--I wondered if there'd be a way to make it so. And while it seems like the actual method for doing so isn't that hard, the crazy amount of nested brackets and parentheses make it a bit of a mess to properly read and modify. So I'm tinkering with template "Jage" before moving anything over to "age" proper.

Regular Age works by basically saying "Subtract the later year from the earlier year. Then subtract 1 if it's an earlier month, or it's the same month but an earlier day." I'm trying to add a rule that says "Add 1 back on if it's the right month, one day too soon, and the current hour is beyond a certain point." This still wouldn't be a total fix as it still wouldn't catch birthdays on the first of one month when in this wiki's time zone it's still the last day of the previous month, buuut one step at a time.

If this is working as intended, then once CURRENTHOUR is at 15 or beyond, the Jage for "tomorrow's" birthday should change.

CURRENTMONTH: August CURRENTDAY: 27 CURRENTHOUR:

Born 2000-08-05 Age: 23 Jage:

Born 2000-08-06 Age: 23 Jage:

Born 2000-08-07 Age: 23 Jage:

Born 2000-08-08 Age: 23 Jage: