1 # -*- coding: utf-8 -*-
4 # This file is part of LyX, the document processor.
5 # Licence details can be found in the file COPYING.
7 # \author Enrico Forestieri
9 # Full author contact details are available in file CREDITS.
11 # Print the system date and time in the given format. See the python
12 # documentation for available formats (mostly the same as the POSIX std).
13 # This file is provided because the date command on Windows is not
17 from time import strftime
21 sys.stderr.write('Usage: python date.py [<format>]\n')
29 print strftime(format)
31 if __name__ == "__main__":