📄 timetable.java
字号:
package support;
import jdsl.core.api.*;
import jdsl.graph.api.*;
/**
* This class contains static methods for doing time arithmetic.
*
* @version JDSL 2
*/
public class TimeTable {
// Compute the difference between times a and b, taking into account
// the possiblity of crossing days.
public static int diff(int a, int b) {
int result = (a - b) % 1440;
if (result < 0)
result += 1440;
return result;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -