Skip to content

Python code snippet – How to print time ?

import datetime
datetime.datetime(2009, 1, 6, 15, 8, 24, 78915)

#2009-01-06 15:08:24.789150
See also  How to iteratively create a grid within a bigger grid in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.