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