You can download this code by clicking the button below.
This code is now available for download.
This function retrieves the current system time and returns a datetime object.
Technology Stack : datetime
Code Type : Function
Code Difficulty :
import datetime
def current_time():
"""
返回当前的系统时间。
"""
return datetime.datetime.now()