INNER CODE UNIT · Python

now

fralau/mkdocs-macros-plugin · mkdocs_macros/context.py:375

    def now():
        """
        *Default Mkdocs-Macro*:
        Get the current time (at the moment of the project build).
        It returns a datetime object. 
        Used alone, it provides a timestamp.
        To get the year use `now().year`, for the month number 
        `now().month`, etc.
        """
        return datetime.datetime.now()

    # add fix url function as macro
    env.macro(fix_url)




    # add the normal mkdocs url function

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…