Ask a Question related to PERL Miscellaneous, Design and Development.

  1. #1

    Default locatime()

    hello
    I have a date array, I need to identify those dates which are Saturdays and
    Sundays. I think part of my problem is that I don't know how to search the
    documentations that came with perl5.6 in my Linux box. so I you could give
    some direction on how to do that tasks I am grateful

    thanks


    Sam Guest

  2. #2

    Default Re: locatime()


    "Sam" <samj@austarmetro.com.au> wrote in message
    news:3f678512$1@news.comindico.com.au...
    > hello
    > I have a date array, I need to identify those dates which are Saturdays
    and
    > Sundays.
    Install the Date::Calc module from CPAN and use something like the
    Day_of_Week() function.

    I think part of my problem is that I don't know how to search the
    > documentations that came with perl5.6 in my Linux box. so I you could give
    > some direction on how to do that tasks I am grateful
    >
    perldoc -q date
    # but since Date::Calc is not standard, this won't answer your specific
    question. Nonetheless, this is the general approach for querying the docs.


    James E Keenan Guest

  3. #3

    Default Re: locatime()

    "Sam" <samj@austarmetro.com.au> wrote in message news:<3f678512$1@news.comindico.com.au>...
    > hello
    > I have a date array, I need to identify those dates which are Saturdays and
    > Sundays. I think part of my problem is that I don't know how to search the
    > documentations that came with perl5.6 in my Linux box. so I you could give
    > some direction on how to do that tasks I am grateful
    >
    > thanks
    Reference book such as Programming Perl is a good alternate source of
    getting the type of information that you're looking for. For instance,
    if you look up localtime() you would see an example of getting the day
    of the week from the function like this:

    $thisday = (Sun,Mon,Tue,Wed,Thu,Fri,Sat)[(localtime)[6]];

    Although books are not cheap, but they may include information that
    might be valuable and they are portable and require no AC or battery
    to operate.

    Tom
    ztml.com
    Tom Guest

  4. #4

    Default Re: locatime()

    In article <59b4279a.0309170319.d188a7e@posting.google.com> , Tom wrote:
    >
    > Reference book such as Programming Perl is a good alternate source of
    > getting the type of information that you're looking for.
    As long as you keep in mind that it's an *alternate* source. The books
    are not the definitive documentation, and are often out of date. I
    think the last edition of PP covers 5.6.0 (certainly no later than
    5.6.1).

    dha

    --
    David H. Adler - <dha@panix.com> - [url]http://www.panix.com/~dha/[/url]
    It's about hoodwinking the viewer in the cheapest and easiest manner
    possible - Markku Pätilä
    David H. Adler Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139