Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Date::Range 1.41

    Download button

    No screenshots available
    Downloads: 103  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Tony Bowden | More programs
    Perl Artistic License / FREE
    November 16th, 2011, 01:58 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Date::Range description

    Work with a range of dates

    Quite often, when dealing with dates, we don't just want to know information about one particular date, but about a range of dates. For example, we may wish to know whether a given date is in a particular range, or what the overlap is between one range and another. Date::Range is a Perl module that lets you ask such questions.

    SYNOPSIS

     use Date::Range;

     my $range = Date::Range->new($date1, $date2);

     my $earliest = $range->start;
     my $latest = $range->end;
     my $days = $range->length;

     if ($range->includes($date3)) { ... }
     if ($range->includes($range2)) { ... }

     if ($range->overlaps($range2)) {
     my $range3 = $range->overlap($range2);
     }

     foreach my $date ($range->dates) { ... }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    dates range | Perl module | Perl | date | range

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM