|
本帖最後由 jason680 於 18-11-5 21:51 編輯
1跟2都要改一下...
1.time>=0915 or time <=0100
2. time>=0915 and time <=2359 or time >=0000 and time <=0059
1是2的簡化...
我的習慣會這樣寫...2. 0915 <= time and time <=2359 or 0000 <= time and time <=0100
因為時間不會超過24小時及小於零晨(沒有負值),簡化後...
1. 0915 <= time and time <=2359 or 0000 <= time and time <=0100
1. 0915 <= time or time <=0100
|
|