Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: calendar print outs

by cchampion (Curate)
on Dec 20, 2004 at 18:18 UTC ( #416264=note: print w/replies, xml ) Need Help??

in reply to Calendar print outs

Not a module, but what about this?

perl -e 'system "cal $_" for 2000..2099'

Alternatively, you may try Calendar::Simple.

P.S. s/calander/calendar/

Actually, the 21st century should be 2001..2100. Your request about 2000-2999 covers most of the third millennium (2001-3000).

Replies are listed 'Best First'.
Re^2: calendar print outs
by Fletch (Chancellor) on Dec 20, 2004 at 18:22 UTC

    Maybe he wants colander print outs for the next 100 years, although that might produce a large strain on his system . . .

    Update: And possibly of use to the original querent, PPT implementations of cal.

Re^2: calendar print outs
by drock (Beadle) on Dec 20, 2004 at 21:04 UTC
    ok here is what I have
    for (2005..2006) { system ("cal $_ > /tmp/file"); }
    But how would I get this for individual months for instance in KSH for year in 2004 2005 2006 do for month in 1 2 3 4 5 6 7 8 9 10 11 12 do cal $year/$month
      perl -e 'for $y (2005..2006) {for $m (1..12) {system "cal $m $y"}}' \ > /tmp/file

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://416264]
[james28909]: yep, i am scraping a websites date/time stamp from an article. none of that is relevant though because the strings i get are as expected. the returned data from the website is the list of @weekdays
[james28909]: i need to convert those @weekdays to an numerical date based off of scalar localtime
[james28909]: i have thught about this and though about it lol
[james28909]: also remember, that if 'Today' is may 1, then Yesterday is not may 31 lol
[james28909]: theoretically speaking ofcourse

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2017-04-29 03:47 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (531 votes). Check out past polls.