Changes

Jump to navigation Jump to search
1,247 bytes added ,  18:06, 25 August 2023
m
no edit summary
</cd:description>
<cd:examples><cd:example title="Example 1: The Current Date"><context source="yes" text="gives">
\currentdate
 
\currentdate[weekday,month,day,{, },year]
\currentdate[day,{.~},month,{~},year]
</context></cd:example><cd:example title="Example 2: Incrementing and Decrementing the Current Date"><context source="yes" text="gives">
Today it's is \currentdate.\blank
\increment\normalday
Tomorrow will be \currentdate.\blank
\decrement\normalday
 %\increment\normalmonth% -- gives and an erroras of 08-2023
\increment\normalyear
And today in a year will be \currentdate.
</context></cd:example><cd:example title="Example 3: Incrementing/and Decrementing the Current Date Locally"><context source="yes" text="gives">Today it's is \currentdate. \start\increment\normaldayTomorrow will be \currentdate.\stop Yet today is \currentdate.</context></cd:example><cd:example title="Example 4: Incrementing and Decrementing the Current Date by N"><context source="yes" text="gives">Hello\blankdorecurse{1}{, Hello}.
Today is \currentdate.
\start\increment\normalday
Tomorrow So tomorrow will be \currentdate\stop\start\dorecurse{3}{\increment\normalday}and in three days will be \currentdate\ or so.\stop Yet today is \currentdate.</context> (Side-note the usage of line breaks and blanklines in the source code and how they alter the PDF product.)</cd:example><cd:example title="Example 5: More Complex Usage"><context source="yes" text="gives" width="5cm">\definedate[short][month,{,~},day]\definedate[long][{the },day:++,{ of },month,{ in the year of },year] \def\Today{\currentdate[long]} % \def = \defineexpandable% {...} = \start ...\stop \defineexpandable[2]\Later{%\start\dorecurse{#1}{\increment\normalday}%\currentdate[#2]%
\stop
}
 
Today is \Today\ one should believe.
 
So tomorrow will be \Later{1}{short}.
 
And in three days should be \Later{3}{long} or so.
</context>
Yet today it's still Note the usage of commenting (using the percent sign [<code>%</code>]) to avoid unwanted spacing that occurs when using line breaks, especially within brackets (e.g. <code>\currentdatestart</code> ...<code>\stop</contextcode>).</cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:wikipage originator="system" page="Category:Counter"></cd:wikipage>
<cd:wikipage originator="system" page="Keywords:Language"></cd:wikipage>
<cd:commandref name="date">for lots more detail details about the formatting options</cd:commandref>
<cd:commandref name="definedate"></cd:commandref></cd:seealso>
</cd:commandgroup>
194

edits

Navigation menu