Example #1
0
        public int difEntre2Horas(Hora h)
        {
            float[] dif = { 0, 0 };
            dif[0] += seg;
            dif[0] += min * 60;
            dif[0] += hora * 60 * 60;
            dif[1] += h.seg;
            dif[1] += h.min * 60;
            dif[1] += h.hora * 60 * 60;


            return(int.Parse(Math.Round(Math.Abs((dif[0] - dif[1]) / (60 * 60))).ToString()));
        }
Example #2
0
 public Hora(Hora h)
 {
     hora = h.hora;
     min  = h.min;
     seg  = h.seg;
 }