ghy
Alejandro Acuña
2025-03-12 26319e4c5bfbee722c15b8e7ccca9b6127bb1cb8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package art.servers.colorsserver.M.protocol;
 
import java.util.Calendar;
 
public class Test extends Thread
{
    public void run()
    {
        while (true)
        {
            try
            {
                Calendar calendar = Calendar.getInstance();
                calendar.setTimeInMillis(System.currentTimeMillis());
                if ((calendar.get(Calendar.HOUR_OF_DAY) == 0) && (calendar.get(Calendar.MINUTE) == 0))
                {
                    System.exit(0);
                }
                else if ((calendar.get(Calendar.HOUR_OF_DAY) == 1) && (calendar.get(Calendar.MINUTE) == 0))
                {
                    System.exit(0);
                }
                else if ((calendar.get(Calendar.HOUR_OF_DAY) == 2) && (calendar.get(Calendar.MINUTE) == 0))
                {
                    System.exit(0);
                }
                else if ((calendar.get(Calendar.HOUR_OF_DAY) == 3) && (calendar.get(Calendar.MINUTE) == 0))
                {
                    System.exit(0);
                }
                else if ((calendar.get(Calendar.HOUR_OF_DAY) == 4) && (calendar.get(Calendar.MINUTE) == 0))
                {
                    System.exit(0);
                }
                else if ((calendar.get(Calendar.HOUR_OF_DAY) == 5) && (calendar.get(Calendar.MINUTE) == 0))
                {
                    System.exit(0);
                }
                else if ((calendar.get(Calendar.HOUR_OF_DAY) == 6) && (calendar.get(Calendar.MINUTE) == 0))
                {
                    System.exit(0);
                }
                else if ((calendar.get(Calendar.HOUR_OF_DAY) == 7) && (calendar.get(Calendar.MINUTE) == 0))
                {
                    System.exit(0);
                }
                else if ((calendar.get(Calendar.HOUR_OF_DAY) == 8) && (calendar.get(Calendar.MINUTE) == 0))
                {
                    System.exit(0);
                }
                else if ((calendar.get(Calendar.HOUR_OF_DAY) == 14) && (calendar.get(Calendar.MINUTE) == 0))
                {
                    System.exit(0);
                }
                else if ((calendar.get(Calendar.HOUR_OF_DAY) == 20) && (calendar.get(Calendar.MINUTE) == 0))
                {
                    System.exit(0);
                }
            }
            catch (Exception e)
            {
                
            }
            finally
            {
                try{sleep(30000);} catch (Exception e){};
            }
        }
    }
}