From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62650 Path: news.gmane.org!not-for-mail From: Peter =?utf-8?Q?M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: Problem with \date command Date: Fri, 15 Oct 2010 15:14:16 +0200 Message-ID: <20101015131416.GA7605@gaston.couberia.bzh> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1287148470 15840 80.91.229.12 (15 Oct 2010 13:14:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2010 13:14:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 15 15:14:28 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6k78-0008CP-Bm for gctc-ntg-context-518@m.gmane.org; Fri, 15 Oct 2010 15:14:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20AA8CA73E; Fri, 15 Oct 2010 15:14:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mjGrK-+avhQm; Fri, 15 Oct 2010 15:14:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7AC15CA737; Fri, 15 Oct 2010 15:14:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 98E3FCA737 for ; Fri, 15 Oct 2010 15:14:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id pTXGhwwmy6PI for ; Fri, 15 Oct 2010 15:14:18 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id CF0DDCA620 for ; Fri, 15 Oct 2010 15:14:18 +0200 (CEST) Original-Received: from smtp.smtpout.orange.fr (smtp09.smtpout.orange.fr [80.12.242.131]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9FDEILj005535 for ; Fri, 15 Oct 2010 15:14:18 +0200 Original-Received: from gaston.couberia.bzh ([86.210.83.18]) by mwinf5d17 with ME id K1EH1f0040PjY0N031EHMJ; Fri, 15 Oct 2010 15:14:18 +0200 Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id B35CA301C8; Fri, 15 Oct 2010 15:14:16 +0200 (CEST) Mail-Followup-To: mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=80.12.242.131; country=FR; region=A8; city=Guyancourt; latitude=48.7667; longitude=2.0667; http://maps.google.com/maps?q=48.7667,2.0667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rDj1eiTj - 66c6ac5c1991 - 20101015 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:62650 Archived-At: On Fri, Oct 15 2010, Cedric Mauclair wrote: > > Today I wanted to use the command "\date[d=15,m=10,y=2010][weekday]". > It gives "Friday" as it should. However > "\date[d=2,m=1,y=2011][weekday]" gives the same result which is wrong > (it's a Sunday). In fact, whatever the supplied date, it gives > "Friday". I guess the parameter isn't taken into account here. No problem here: \starttext \doifmodeelse{mkiv}{MKIV}{MKII}: Sunday = \date[d=2,m=1,y=2011][weekday] ? \stoptext Perhaps you use a very old version? There was a bug more than 2 years ago: http://archive.contextgarden.net/message/20080331.082509.7fc304a9.en.html Peter -- Contact information: http://pmrb.free.fr/contact/ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________