help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: If clause depending on name of the day


From: Lars Ljung
Subject: Re: If clause depending on name of the day
Date: Tue, 03 Apr 2012 21:32:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux)

"Sven Bretfeld" <sven.bretfeld@gmx.ch> writes:
> Is it possible to have an if-condition that looks for the current day?
> So that the then-expression does something different on Tuesday than on
> Friday? 

(nth 6 (decode-time)) returns 0-6 for Sunday-Saturday.

-- 
Lars Ljung




reply via email to

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