File size: 244 Bytes
28fad98
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
from datetime import datetime

def get_current_time() -> dict:
    """Get current time
    
    Returns:
        dict: A dictionary containing current timestamp.
    """
    return({"Current Time": datetime.now().strftime("%Y-%m-%d %H:%M:%S")})