This post lists some common operations in Python such as file operation and time handling.
File Operations
Time Handling
datetime
in Python2.x or Python 3.x.
Note that the format codes listed in
strftime
are slightly different from what is mentioned here