all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <horn@uni-koblenz.de>
To: emacs-devel@gnu.org
Subject: Re: calendar problem: week number
Date: Thu, 7 Aug 2008 11:38:58 +0200	[thread overview]
Message-ID: <200808071138.58607.horn@uni-koblenz.de> (raw)
In-Reply-To: <20080807.111511.144819219.wl@gnu.org>

On Thursday 07 August 2008 11:15:11 Werner LEMBERG wrote:

Hi Werner,

> Companies in German are used to refer to the `Kalenderwoche' (the
> current number of the week counted from the beginning of the year).
> For example, this week is the 32nd week.  Can I configure `calendar'
> to make it display, eg., like in the attached image?  I haven't found
> a hint in the info file.

I use this custom code to do that:

--8<---------------cut here---------------start------------->8---
(add-to-list 'calendar-mode-line-format
             '(let ((day (nth 1 date))
                    (month (nth 0 date))
                    (year (nth 2 date)))
                (format-time-string "Week of year: %V"
                                    (encode-time 1 1 1 day month 
year))))
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo





  reply	other threads:[~2008-08-07  9:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-07  9:15 calendar problem: week number Werner LEMBERG
2008-08-07  9:38 ` Tassilo Horn [this message]
2008-08-07 14:49   ` Ed Reingold
2008-08-08 14:43   ` Werner LEMBERG
2008-08-08 14:54     ` Werner LEMBERG
2008-08-08 15:17     ` Lawrence Mitchell
2008-08-07 10:03 ` tomas
2008-08-07 10:34   ` Werner LEMBERG
2008-08-07 11:40 ` Lawrence Mitchell
2008-08-07 11:58   ` Ed Reingold
2008-08-07 12:59     ` Lawrence Mitchell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200808071138.58607.horn@uni-koblenz.de \
    --to=horn@uni-koblenz.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.