private long getCombinedValue(UTCDateBox date, UTCTimeBox time) {
        Long dateValue = date.getValue();
        Long timeValue = time.getValue();
    
        if (dateValue != null) {
            if (timeValue != null) {
                return dateValue + timeValue;
            }
            else {
                return dateValue;
            }
        }
        else {
            if (timeValue != null) {
                return timeValue;
            }
            else {
                return 0;
            }
        }
    }
private long getCombinedValue ( UTCDateBox date , UTCTimeBox time ) { Long dateValue = date . getValue ( ) ; Long timeValue = time . getValue ( ) ; if ( dateValue != null ) { if ( timeValue != null ) { return dateValue + timeValue ; } else { return dateValue ; } } else { if ( timeValue != null ) { return timeValue ; } else { return 0 ; } } }
This allows us to treat a datetime as a single value, making it
easy for comparison and adjustment. We don't actually expose
this because the timezone issues make it too confusing to
clients.