Program - function to get the current time at GMT


Topic: Program - function to get the current time at GMT

Solution

def current_time():
    import datetime
    print(datetime.datetime.now())



List all Python Programs