Infosys Interview Question

How would you get time in Python?