]> git.tuebingen.mpg.de Git - paraslash.git/commit
Add the new "year" mood method.
authorAndre Noll <maan@systemlinux.org>
Thu, 9 Jul 2009 18:11:55 +0000 (20:11 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 9 Jul 2009 18:11:55 +0000 (20:11 +0200)
commit5f540c5a4793a704bbdd4e7aaf117b8a3e642002
treefaa933ebcd89501e434a39e1d7dd23686a4880e5
parent57e0c93e87138fdf1c8793c3d1f3d2880d717548
Add the new "year" mood method.

This includes a Y2K heuristic for year tags that contain only two digits. If that two-digit
number N is less or equal than the current year minus 2000, assume that it means 2000 + N.
Otherwise, assume 1900 + N.

Examples: 0 -> 2000, 42 -> 1942, 9->2009.
mood.c