Changes

Jump to navigation Jump to search
656 bytes added ,  18:36, 21 August 2023
Added two examples for incrementing and decrementing \currentdate, wondering why the code only works for year and day but not for month...
</cd:description>
<cd:examples><cd:example title="Example 1: The Current Date"><context source="yes" text="gives">
\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 \currentdate.\blank
 
\increment\normalday
 
Tomorrow will be \currentdate.\blank
 
\decrement\normalday
%\increment\normalmonth% -- gives and error
\increment\normalyear
 
And today in a year will be \currentdate.
</context></cd:example><cd:example title="Example 3: Incrementing/Decrementing the Date Locally"><context source="yes" text="gives">
Today it's \currentdate.\blank
 
\start\increment\normalday
Tomorrow will be \currentdate.\blank
\stop
 
Yet today it's still \currentdate.
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
194

edits

Navigation menu