Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬时间不对 #7

Open
ghost opened this issue Jul 1, 2017 · 4 comments
Open

大佬时间不对 #7

ghost opened this issue Jul 1, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Jul 1, 2017

设置了时间,但是自动计时还是不对

@PpoiOI
Copy link

PpoiOI commented Jul 1, 2017

月份要减的吧

@ghost
Copy link
Author

ghost commented Jul 1, 2017

不太懂这算法,我填入2017年5月1日,距离今天2017年7月1日的计时却是是30天
var textAnimate = eval(Jscex.compile("async", function () { var together = new Date(); together.setFullYear(2017,05,01); together.setHours(10); together.setMinutes(00); together.setSeconds(0); together.setMilliseconds(0);

@PpoiOI
Copy link

PpoiOI commented Jul 3, 2017

没,你仔细看说明,月份应该减1的。拿你这个例子来说,要计算2017年5月1号到7月1号的时间差的话,起始月份应该要减1,应该是2017年(5-1)月1号

@mengfantao
Copy link

月日十分秒都是从0开始

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants