Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'View upcoming events on multiple Unix calendars' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View upcoming events on multiple Unix calendars
Authored by: ZZamboni on May 15, '06 12:05:56PM
While this works for most cases, it fails for the more complex date specifications that calendar understands. For example:
% % grep -v '[0-9][0-9]/[0-9][0-9]' /usr/share/calendar.* | less
calendar.australia:Mar 18       Canberra Day (ACT)
   (textual month specification)
calendar.australia:8/MonFirst   Bank Holiday (ACT, NSW)
   ("first monday of the month")
calendar.christian:Easter-46    Ash Wednesday (First day of Lent)
calendar.christian:Easter-7     Palm Sunday (7 days before Easter)
   (Easter-relative dates)
It also ignores multi-line specifications:
01/28   Space Shuttle Challenger (51-L) explodes 74 seconds after liftoff
        killing Scobee, Smith, McNair, Resnick, Jarvis, Onizuka and McAuliffe,
        1986 


[ Reply to This | # ]