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 > Libraries

    DateTime::Cron::Simple 0.2

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Brendan Fagan | More programs
    Perl Artistic License / FREE
    December 21st, 2006, 07:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    DateTime::Cron::Simple description

    DateTime::Cron::Simple is a Perl module that can parse a cron entry and check against current time.

    DateTime::Cron::Simple is a Perl module that can parse a cron entry and check against current time.

    SYNOPSIS

    use DateTime::Cron::Simple;

    $c = DateTime::Cron::Simple->new($cron);

    $boolean = $c->validate_time;

    $c->new_cron($cron);

    This module is a quick and dirty way to determine if a cron time format is valid for the current date and time.

    A cron entry follows the cron format from crontab(5).

    The validate_time function uses the current date and time for comparison, but will also accept a valid DateTime object as a parameter.

    EXAMPLE

    use DateTime::Cron::Simple;

    $c = DateTime::Cron::Simple->new('0-59/2 10,12 * * 5');

    if($c->validate_time) { ... }

    $c->new_cron('* * 1 * 0');

    if($c->validate_time) { ... }

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    parse cron entry | check current time | Perl module | DateTime::Cron::Simp | parse | cron

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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