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

    MooseX::Types::Date::Piece 0.03

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Steven Lee | More programs
    Perl Artistic License / FREE
    September 22nd, 2012, 16:45 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    MooseX::Types::Date::Piece description

    Date::Piece type and coercions for Moose

    MooseX::Types::Date::Piece is a Perl module that provides Moose type constraints and coercions related to Date::Piece.

    SYNOPSIS

     package Foo;

     use Moose;
     use MooseX::Types::Date::Piece;

     has 'date' => (
     is => 'ro',
     isa => 'Date::Piece',
     coerce => 1,
     );

     has 'date_str' => (
     is => 'ro',
     isa => 'Str',
     coerce => 1,
     );

     has 'duration' => (
     is => 'ro',
     isa => 'Date::Piece::Duration',
     coerce => 1,
     );

     # ...

     my $f = Foo->new(
     date => '2012-07-09',
     duration => '1day',
     date_str => Date::Piece::date('20120709'),
     );



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Moose type constraints | Perl module | Perl | Moose | type

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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