This file is indexed.

/usr/share/lyx/scripts/date.py is in lyx-common 2.2.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- coding: utf-8 -*-

# file date.py
# This file is part of LyX, the document processor.
# Licence details can be found in the file COPYING.

# \author Enrico Forestieri

# Full author contact details are available in file CREDITS.

# Print the system date and time in the given format. See the python
# documentation for available formats (mostly the same as the POSIX std).
# This file is provided because the date command on Windows is not
# POSIX compliant.

import sys
from time import strftime

def main(argv):
    if len(argv) > 2:
        sys.stderr.write('Usage: python date.py [<format>]\n')
        sys.exit(1)

    if len(argv) == 2:
        format = argv[1]
    else:
        format = "%d-%m-%Y"

    print strftime(format)

if __name__ == "__main__":
    main(sys.argv)