DateTime Extension
The DateTime extension provides the "datetime" command that provides a mechanism for date and time operations. This extension is based on the datetime
package that is part of the standard python library.
Table 1: Configuration items for the datetime extension.
Key | Default | Description |
---|---|---|
active | True | Toggle for disabling the extension. This only changes the initial active state, use setActive to control at runtime. |
Today
The "today" sub-command inserts the date when the execution of the documentation build occurs, by calling the python datetime.date.today()
function, as demonstrated in Example 1. The available settings for the this command are provided in Table 2.
Table 2: Available settings for the !datetime today
command.
Key | Default | Description |
---|---|---|
style | None | The style settings that are passed to rendered HTML tag. |
class | None | The class settings to be passed to rendered HTML tag. |
id | None | The class settings to be passed to the rendered tag. |
format | %Y-%m-%d | The date format (see python datetime). |