Query related function

How to get current Date & Time in python. Is there any function available in python for Geeting current Date & Time?

@sriv.ansh

To get both current date and time datetime. now() function of DateTime module is used. This function returns the current local date and time.