Print Week Number from System Time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paragguptaiiita
    New Member
    • Feb 2008
    • 21

    Print Week Number from System Time

    Hi

    I am new in Perl, i want to print the week number from the Date.
    I fetched date from localtime() function, now how can we convert this date into the week number?

    Thanks in advace :)
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    the localtime function does not contain the number of the week. Maybe POSIX or one of the Date modules can determine that.

    Comment

    • paragguptaiiita
      New Member
      • Feb 2008
      • 21

      #3
      I retrived the Today's date by the localtime() function, now i want to print the corronsponding week number in Perl...

      Comment

      • numberwhun
        Recognized Expert Moderator Specialist
        • May 2007
        • 3467

        #4
        Originally posted by paragguptaiiita
        I retrived the Today's date by the localtime() function, now i want to print the corronsponding week number in Perl...
        If I am understanding what you want, then you want to be looking at this module from CPAN.

        Regards,

        Jeff

        Comment

        • KevinADC
          Recognized Expert Specialist
          • Jan 2007
          • 4092

          #5
          Originally posted by paragguptaiiita
          I retrived the Today's date by the localtime() function, now i want to print the corronsponding week number in Perl...
          Thats nice...good luck.

          Comment

          Working...