all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ed Reingold <reingold@emr.cs.iit.edu>
To: Tassilo Horn <horn@uni-koblenz.de>
Cc: emacs-devel@gnu.org
Subject: Re: calendar problem: week number
Date: Thu, 07 Aug 2008 09:49:22 -0500	[thread overview]
Message-ID: <200808071449.m77EnMLj003784@emr.cs.iit.edu> (raw)
In-Reply-To: Message from Tassilo Horn <horn@uni-koblenz.de> of "Thu, 07 Aug 2008 11:38:58 +0200." <200808071138.58607.horn@uni-koblenz.de>

> (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))))

That should not cause any problems.  Note that you can also use the calendar 
code functions for the week number; see cal-iso.el








  reply	other threads:[~2008-08-07 14:49 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
2008-08-07 14:49   ` Ed Reingold [this message]
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=200808071449.m77EnMLj003784@emr.cs.iit.edu \
    --to=reingold@emr.cs.iit.edu \
    --cc=emacs-devel@gnu.org \
    --cc=horn@uni-koblenz.de \
    /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.