if (yyyy > 0) year = yyyy; else return; if (mm > 0) month = mm; else return; if (dd > 0) day = dd; else return; if (hh == -1) return;
if (yyyy > 0) { year = yyyy; } else { return; }  if (mm > 0) { month = mm; } else { return; }  if (dd > 0) { day = dd; } else { return; }  if (hh == -1) { return; }
    public void setDateLocal(int yyyy,        int mm,        int dd,        int hh,        int mn,        int ss)    {        year = month = day = hours = minutes = seconds = -1;        if (yyyy > 0) year = yyyy;        else return;        if (mm > 0) month = mm;        else return;        if (dd > 0) day = dd;        else return;        if (hh == -1) return;        // We have a time, so we need to do a timezone adjustment        localGC = new GregorianCalendar(year,                    month - 1,                    day,                    hh,                    mn,                    ss);        // Adjust to UTC        GregorianCalendar utcGC =            new GregorianCalendar(TimeZone.getTimeZone("UTC"));        utcGC.setTime(localGC.getTime());        year = utcGC.get(Calendar.YEAR);        // Notation        month = utcGC.get(Calendar.MONTH) + 1;        day = utcGC.get(Calendar.DAY_OF_MONTH);        hours = utcGC.get(Calendar.HOUR_OF_DAY);        minutes = utcGC.get(Calendar.MINUTE);        seconds = utcGC.get(Calendar.SECOND);    }