[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [week?] (was: insert date-stamp for one month)

From: Thomas Plass
Subject: Re: [O] [week?] (was: insert date-stamp for one month)
Date: Mon, 19 Aug 2019 14:29:16 +0200


Uwe Brauer wrote at 16:33 on August 18, 2019:

: The problem seems to be that there is no function
: calendar-last-day-of-week.

Well, there is, it's called `calendar-week-end-day'.

This returns the index into 'calendar-day-name-array.  Note that the
variable 'calendar-week-start-day should be set properly (it defaults
to 0 = $SUNDAY, while I set this to 1, meaning $MONDAY).

This will only get you as far as computing the name of the day.
Computing a date and/or timestamp for an instance of that day name
relative to a date is quite another matter.  The file
calendar/time-date.el might provide useful stuff for doing so.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]