nan* functions should get passed the actual array. Also adds code-block directives to the docstring so that they get highlighted by Sphinx as Python code.
getmtime