Re: konsolekalendar: print next month
Kevin Krammer <[email protected]>
| Newsgroups | gmane.comp.kde.users.pim |
|---|---|
| Message-ID | <[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 Cheers, Kevin -- Kevin Krammer, KDE developer, xdg-utils developer KDE user support, developer mentoring _______________________________________________ KDE PIM users mailing list [email protected] https://mail.kde.org/mailman/listinfo/kdepim-users
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQBKCGN7nKMhG6pzZJIRAlgYAJ9bCUXlqjWDaYKu2mPiyhIh/8yROwCfUCm+ qgi62MP33kyEn50Pfjsu34M= =xJ7z -----END PGP SIGNATURE-----