Get the current time in Python The Problem How do I get the current time in Python? The Solution We can get the current time using the now method in Python’s built-in datetime library.