The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

LBMA::Statistics::Date - Common date methods for LBMA::Statistics (Internal only)

DESCRIPTON

LBMA::Statistics::Date handles common date methods for LBMA::Statistics.

This module is for internal use only. There's no need to access it directly.

See http://search.cpan.org/perldoc?LBMA::Statistics

SYNOPSIS

new - Constructor

Parameters

Parameters are all lowercase.

  • year - four digit year (1968 .. )

  • month - one or two digit month (1 .. 12)

  • day - one or two digit day (1 .. 31)

    use strict;

    use warnings;

    use LBMA::Statistics::Date;

    my $date = LBMA::Statistics::Date->new( year => $year,
                                            month => $month,
                                            day => $day, 
        ) or die $!;

If no parameters are passed to this class, today is assumed. Today is determined using UTC. In doubt pass a valid date.

    my $date = LBMA::Statistics::Date->new( ); 

Dies if supplied date isn't valid or year is before 1968.

year - returns the year

        print $date->year(), "\n";

day_pattern - returns a date/day-pattern YY-MMM-DD

        print $date->day_pattern(), "\n";

INTERNAL METHODS

_init

formats date strings from supplied year, month, day

PREREQUISITES

AUTHOR

Thomas Fahle, <cpan at thomas-fahle.de>

BUGS

Please report any bugs or feature requests to bug-lbma-statistics at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LBMA-Statistics. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc LBMA::Statistics::Date

COPYRIGHT & LICENSE

Copyright 2009, 2010, 2012, 2014 Thomas Fahle

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.