def getDate():
    """Returns a formatted string with the current date."""

    _ltime = _time.localtime(_time.time())
    date_str = _time.strftime('%Y-%m-%dT%H:%M:%S',_ltime)

    return date_str
def getDate ( ) : _ltime = _time . localtime ( _time . time ( ) ) date_str = _time . strftime ( '%Y-%m-%dT%H:%M:%S' , _ltime ) return date_str
Returns a formatted string with the current date.