NAME
Data::Adsense::MonthFraction - fraction of a month in AdSense time zone
FUNCTIONS
month_fraction
my $fraction = month_fraction ();
This calculates the days of the month divided by how many days have passed so far, in the Adsense time zone. This is for extrapolating values for the current month. For example, if you have had 1000 views this month, to get the extrapolated views until the end of the month,
my $views_so_far = 1000;
my $guessed_views = $fraction * $views_so_far;
The value of $fraction
includes hours and minutes.
SEE ALSO
adstrapolate is a command-line interface to Data::Adsense::MonthFraction.
AUTHOR
Ben Bullock, <bkb@cpan.org>
COPYRIGHT & LICENCE
This package and associated files are copyright (C) 2012-2013 Ben Bullock.
You can use, copy, modify and redistribute this package and associated files under the Perl Artistic Licence or the GNU General Public Licence.