Make GetTimePeriod() and others accept days.
authorThomas Hochstein <thh@inter.net>
Tue, 3 Sep 2013 19:47:25 +0000 (21:47 +0200)
committerThomas Hochstein <thh@inter.net>
Tue, 3 Sep 2013 20:44:36 +0000 (22:44 +0200)
commit3634010808edf7421d7034e94b8f7928dfadd059
tree09d6eeb54d6371b865c1fca1f436da62f304e6a3
parent599fefbf6aea5777c2958718048ad3e3a12050fc
Make GetTimePeriod() and others accept days.

GetTimePeriod() was written to take a month
('YYYY-MM') and work with that. Make it accept
not only a month, but also a day ('YYYY-MM-DD')
by adding a $TYpe modifier.

Rename LastMonth() to LastMonthDay() and rewrite
it accordingly.

Rename CheckMonth() to CheckPeriod() and rewrite
it accordingly.

As GetTimePeriod() defaults to 'month' if no
modifier is passed this change should be backwards
compatible.

Signed-off-by: Thomas Hochstein <thh@inter.net>
lib/NewsStats.pm
This page took 0.011329 seconds and 4 git commands to generate.