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.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    DateTime::Format::Natural 1.01

    Download button

    No screenshots available
    Downloads: 189  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Steven Schubiger | More programs
    Perl Artistic License / FREE
    September 22nd, 2012, 10:37 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    DateTime::Format::Natural description

    Create machine readable date/time with natural parsing logic

    DateTime::Format::Natural is a Perl module that takes a string with a human readable date/time and creates a machine readable one by applying natural parsing logic.

    SYNOPSIS

     use DateTime::Format::Natural;

     $parser = DateTime::Format::Natural->new;

     $date_string = $parser->extract_datetime($extract_string);
     @date_strings = $parser->extract_datetime($extract_string);

     $dt = $parser->parse_datetime($date_string);
     @dt = $parser->parse_datetime_duration($date_string);

     if ($parser->success) {
     # operate on $dt/@dt, for example:
     printf("d.d.M d:d:d\n", $dt->day,
     $dt->month,
     $dt->year,
     $dt->hour,
     $dt->min,
     $dt->sec);
     } else {
     warn $parser->error;
     }

     @traces = $parser->trace;



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    parsing logic | readable date | readable time | Perl | readable | date

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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