app/src/main/java/org/andstatus/app/net/social/Connection.java
/**
     * @return Unix time. Returns 0 in a case of an error or absence of such a field
     */
@return Unix time. Returns 0 in a case of an error or absence of such a field
@return Unix time . Returns 0 in a case of an error or absence of such a field
public long dateFromJson(JSONObject jso, String fieldName) {
        long date = 0;
        if (jso != null && jso.has(fieldName)) {
            String updated = JsonUtils.optString(jso, fieldName);
            if (updated.length() > 0) {
                date = parseDate(updated);
            }
        }
        return date;
    }
public long dateFromJson ( JSONObject jso , String fieldName ) { long date = 0 ; if ( jso != null && jso . has ( fieldName ) ) { String updated = JsonUtils . optString ( jso , fieldName ) ; if ( updated . length ( ) > 0 ) { date = parseDate ( updated ) ; } } return date ; }
@return Unix time.
@return Unix time .