[kdepim-users] konsolekalendar: print next month

Dotan Cohen dotancohen at gmail.com
Tue May 12 06:33:22 BST 2009


2009/5/11 Kevin Krammer <kevin.krammer at gmx.at>:
> 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
kdepim-users at kde.org
https://mail.kde.org/mailman/listinfo/kdepim-users


More information about the kdepim-users mailing list