Re: konsolekalendar: print next month
Dotan Cohen <[email protected]>
| Newsgroups | gmane.comp.kde.users.pim |
|---|---|
| Message-ID | <[email protected]> |
2009/5/11 Kevin Krammer <[email protected]>: > On Monday, 2009-05-11, Dotan Cohen wrote: >> How does one get konsolekalendar to print _next_ month's calendar in >> HTMLMonth view? I need a solution that will work regardless of what >> the current date is, so simply stating a date will not work as this is >> for a script, not a one-time run. > > Well, you could always get the next month within the script itself like > > THISMONTH=$(date +"%Y-%m")-01 > NEXTMONTHBEGIN=$(date -d "$THISMONTH +1 month" +"%Y-%m")-01 > NEXTMONTHEND=$(date -d "$THISMONTH +2 months -1 day" +"%Y-%m-%d") > > echo $NEXTMONTHBEGIN - $NEXTMONTHEND > Thanks, Kevin. I was hoping to avoid that but it looks like you've done the hard work for me! From here I should be able to google my way into a similar script for next/current week as well. Thanks, have a great week. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il _______________________________________________ KDE PIM users mailing list [email protected] https://mail.kde.org/mailman/listinfo/kdepim-users