The example of this article tells the way Java uses Chinese to display time. Share it for everyone for your reference. The specifics are as follows:
Among them are seconds, such as how long the two tasks are required, or when the task is over or how long the task is restarted to this method. If it is a microsecond, first/1000 first/1000
Private Static String CHINESESE_PERIOD (int T) {int y, n, d, h, m, s; string time; if (t <= 0) return "; s = t % 60; t /= 60; m = t % 60; t /= 60; h = t % 24; t /= 24; d = t % 30; t /= 30; n = t % 12; t /= 12; y = t; time = "" "" "" "" "" "" "" "" "" " ; if (y> 0) time = y + "year"; if (n> 0) time + = n + "month"; if (d> 0) time + = d + "sky"; if (h (h > 0) Time + = h + "hours"; if (m> 0) time + = m + "divide"; if (s> 0) time + = s + "second";
It is hoped that this article is helpful to everyone's Java program design.