Source code for pyexlatex.models.date

from pyexlatex.models.item import SimpleItem
from pyexlatex.texgen import _todays_date_str

[docs]class Date(SimpleItem): name = 'date'
[docs] def __init__(self, contents=None): if contents is None: contents = _todays_date_str() super().__init__(self.name, contents)