(resource)
return None
Get the Last-Modified timestamp for a response returned from a call to
    open_resource().

    If the resource was not returned from an HTTP server or the server did
    not specify a Last-Modified timestamp, this function will return None.
    Otherwise, it returns a tuple of 9 integers as returned by gmtime() in
    the standard Python time module().
Get the Last-Modified timestamp for a response returned from a call to
    open_resource().
Get the Last - Modified timestamp for a response returned from a call to open_resource () .
def get_modified(resource):
    """
    Get the Last-Modified timestamp for a response returned from a call to
    open_resource().

    If the resource was not returned from an HTTP server or the server did
    not specify a Last-Modified timestamp, this function will return None.
    Otherwise, it returns a tuple of 9 integers as returned by gmtime() in
    the standard Python time module().
    """

    if hasattr(resource, "info"):
        last_modified = resource.info().getheader("Last-Modified")
        if last_modified:
            return parse_http_date(last_modified)
    return None
def get_modified ( resource ) : if hasattr ( resource , "info" ) : last_modified = resource . info ( ) . getheader ( "Last-Modified" ) if last_modified : return parse_http_date ( last_modified ) return None