Loading ...
Sorry, an error occurred while loading the content.

How to extract number of weeks from datecalc output -yy:nn:ww:dd:hh:hh:ss

Expand Messages
  • taz.hasan@ymail.com
    Hi How do I extract the number of weeks from the datecalc output. I have generated the difference between 2 dates, but I want to present the week field i my
    Message 1 of 2 , May 5, 2009
    • 0 Attachment
      Hi

      How do I extract the number of weeks from the datecalc output. I have generated the difference between 2 dates, but I want to present the week field i my final output; ie

      USER has not logged in for NO_OF_WEEKS weeks

      Thanks

      Tariq
    • david wright
      date calculation can be tricky to do correctly, luckily there has been good work done in this area, see
      Message 2 of 2 , May 5, 2009
      • 0 Attachment
        date calculation can be tricky to do correctly, luckily there has been good work done in this area, see http://search.cpan.org/~drolsky/DateTime-0.49/lib/DateTime.pm on the CPAN.

        --- On Tue, 5/5/09, taz.hasan@... <taz.hasan@...> wrote:

        > From: taz.hasan@... <taz.hasan@...>
        > Subject: [PBML] How to extract number of weeks from datecalc output -yy:nn:ww:dd:hh:hh:ss
        > To: perl-beginner@yahoogroups.com
        > Date: Tuesday, May 5, 2009, 6:29 AM
        > Hi
        >
        > How do I extract the number of weeks from the datecalc
        > output.  I have generated the difference between 2
        > dates, but I want to present the week field i my final
        > output; ie
        >
        > USER has not logged in for NO_OF_WEEKS weeks
        >
        > Thanks
        >
        > Tariq
        >
        >
        >
        > ------------------------------------
        >
        > Unsubscribing info is here: http://help.yahoo.com/help/us/groups/groups-32.htmlYahoo!
        > Groups Links
        >
        >
        >     mailto:perl-beginner-fullfeatured@yahoogroups.com
        >
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.