Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    slackget10::Date 0.12c

    Download button

    No screenshots available
    Downloads: 288  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.8/5)
    17 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    DUPUIS Arnaud | More programs
    Perl Artistic License / FREE
    June 2nd, 2008, 13:19 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    slackget10::Date description

    slackget10::Date is a Perl class to manage date for slack-get.

    slackget10::Date is a Perl class to manage date for slack-get.

    SYNOPSIS

    This class is an abstraction of a date. It centralyze all operation you can do on a date (like comparisons)

    use slackget10::Date;

    my $date = slackget10::Date->new('day-name' => Mon, 'day-number' => 5, 'year' => 2005);
    $date->year ;
    my $status = $date->compare($another_date_object);
    if($date->is_equal($another_date_object))
    {
    print "Nothing to do : date are the samen";
    }


    CONSTRUCTOR

    new

    The constructor take the followings arguments :

    day-name => the day name in : Mon, Tue, Wed, Thu, Fri, Sat, Sun
    day-number => the day number from 1 to 31. WARNINGS : there is no verification about the date validity !
    month-name => the month name (Jan, Feb, Apr, etc.)
    month-number => the month number (1 to 12)
    hour => the hour ( a string like : 12:52:00). The separator MUST BE ':'
    year => a chicken name...no it's a joke the year (ex: 2005).
    use-approximation => in this case the comparisons method just compare the followings : day, month and year. (default: no)

    You have to manage by yourself the date validity, because this class doesn't check the date validity. The main reason of this, is that this class is use to compare the date of specials files.

    So I use the predicate that peoples which make thoses files don't try to do a joke by a false date.

    my $date = slackget10::Date->new(
    'day-name' => Mon,
    'day-number' => 5,
    'year' => 2005,
    'month-number' => 2,
    'hour' => '12:02:35',
    'use-approximation' => undef
    );


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    slack-get date | date management | Perl module | slack-get | date | manager

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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