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

    DateTime::Format::Strptime 1.0700

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Rick Measham | More programs
    Perl Artistic License / FREE
    May 18th, 2007, 02:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    DateTime::Format::Strptime description

    DateTime::Format::Strptime is a Perl module to parse and format strp and strf time patterns.

    DateTime::Format::Strptime is a Perl module to parse and format strp and strf time patterns.

    SYNOPSIS

    use DateTime::Format::Strptime;

    my $Strp = new DateTime::Format::Strptime(
    pattern => '%T',
    locale => 'en_AU',
    time_zone => 'Australia/Melbourne',
    );

    my $dt = $Strp->parse_datetime('23:16:42');

    $Strp->format_datetime($dt);
    # 23:16:42



    # Croak when things go wrong:
    my $Strp = new DateTime::Format::Strptime(
    pattern => '%T',
    locale => 'en_AU',
    time_zone => 'Australia/Melbourne',
    on_error => 'croak',
    );

    $newpattern = $Strp->pattern('%Q');
    # Unidentified token in pattern: %Q in %Q at line 34 of script.pl

    # Do something else when things go wrong:
    my $Strp = new DateTime::Format::Strptime(
    pattern => '%T',
    locale => 'en_AU',
    time_zone => 'Australia/Melbourne',
    on_error => &phone_police,
    );

    This module implements most of strptime(3), the POSIX function that is the reverse of strftime(3), for DateTime. While strftime takes a DateTime and a pattern and returns a string, strptime takes a string and a pattern and returns the DateTime object associated.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    strp parser | strf parser | Perl module | DateTime::Format::St | parse | strp

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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