public int[] getClosest(){
        Date today;
        int[] res = new int[2];
        int t=1;
        
        long tmp=0;
       try{
            today = today();
       }
       catch(ParseException ex){
           today = new Date();
       }
            
            //today = new Date();
        
        long v=Math.abs(today.getTime() - horarios.get(0).inicio.getTime());
        
        
        for(Horario h:horarios){
            tmp = Math.abs(today.getTime() - h.inicio.getTime());
            if(tmp<v){
                v=tmp;
                t=(int)h.id;
            }
        }
        res[0] = t;
        res[1] = (t+1)%(horarios.size()+1);
        System.out.println("Yolo "+t);
        System.out.println("Yolo3 "+get(t));
        System.out.println("Yolo2 "+tmp);
        return res;
    }