Skip to content

关于课表时间配置会有一分钟的延迟的问题与解决方案 #49

Closed Answered by AlephZHAO
AlephZHAO asked this question in Q&A
Discussion options

You must be logged in to vote

按照项目预设格式配置时间,如下:
......
'08:20-08:29': '课间',
'08:30-09:09': 1,
'09:10-09:19': '课间',
'09:20-09:59': 2,
......

原因:08:29包括08:29:59,即第29分钟包含整个29分(0-60秒),而如果下课设置成30,则下课包含了第30分钟(8:30:00-8:30:60),然后就会出现下课时间多出1分钟的BUG

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AlephZHAO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant