hi monks when i run this script i will get the output and even few errors please some one help me to overcome this errors....thanks in advance...

#!/usr/bin/perl use strict; use DateTime; use DateTime::Format::Strptime; my $strp = DateTime::Format::Strptime->new( pattern => '%Y-%m-%d' ); # convert date to my $date = '2014-01-26'; my $dt = $strp->parse_datetime($date); my $dat = $dt->add(days => 0)->strftime("%Y-%m-%d"); my $rem1 = $dt->add(days => 7)->strftime("%Y-%m-%d"); my $rem2 = $dt->add(days => 14)->strftime("%Y-%m-%d"); print "$date\n$rem1\n$rem2\n$dat\n";

output when i run the script....

The am_pms method in DateTime::Locale::Base has been deprecated. Pleas +e see the DateTime::Locale distribution's Changes file for details at + /usr/share/perl5/DateTime/Format/Strptime.pm line 610. The default_date_format method in DateTime::Locale::Base has been depr +ecated. Please see the DateTime::Locale distribution's Changes file f +or details at /usr/share/perl5/DateTime/Format/Strptime.pm line 613. The default_time_format method in DateTime::Locale::Base has been depr +ecated. Please see the DateTime::Locale distribution's Changes file f +or details at /usr/share/perl5/DateTime/Format/Strptime.pm line 617. The default_datetime_format method in DateTime::Locale::Base has been +deprecated. Please see the DateTime::Locale distribution's Changes fi +le for details at /usr/share/perl5/DateTime/Format/Strptime.pm line 6 +21. The day_names method in DateTime::Locale::Base has been deprecated. Pl +ease see the DateTime::Locale distribution's Changes file for details + at /usr/share/perl5/DateTime/Format/Strptime.pm line 671. The day_abbreviations method in DateTime::Locale::Base has been deprec +ated. Please see the DateTime::Locale distribution's Changes file for + details at /usr/share/perl5/DateTime/Format/Strptime.pm line 671. The month_names method in DateTime::Locale::Base has been deprecated. +Please see the DateTime::Locale distribution's Changes file for detai +ls at /usr/share/perl5/DateTime/Format/Strptime.pm line 682. The month_abbreviations method in DateTime::Locale::Base has been depr +ecated. Please see the DateTime::Locale distribution's Changes file f +or details at /usr/share/perl5/DateTime/Format/Strptime.pm line 682. The am_pms method in DateTime::Locale::Base has been deprecated. Pleas +e see the DateTime::Locale distribution's Changes file for details at + /usr/share/perl5/DateTime/Format/Strptime.pm line 469. 2014-01-26 2014-02-02 2014-02-16 2014-01-26

In reply to datetime error by varalaxmibbnl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.