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

api 提供的时间问题? #9

Closed
cs-moushuai opened this issue Mar 27, 2023 · 2 comments
Closed

api 提供的时间问题? #9

cs-moushuai opened this issue Mar 27, 2023 · 2 comments
Labels
question Further information is requested

Comments

@cs-moushuai
Copy link

https://lccn.lbao.site/api/v1/contest-records/user?contest_name=weekly-contest-338&username=tian-tang-6 为例

其中 finish_time, insert_time, predict_time 分别代表什么及对应时区是什么?

我大概试了一下时区没对的上

我是需要该竞赛对应的用户开始时间,用户结束时间的数据

[
    {
        "_id": "641fcb550455ebb2feb3c666",
        "contest_name": "weekly-contest-338",
        "contest_id": 843,
        "username": "tian-tang-6",
        "user_slug": "tian-tang-6",
        "country_code": "CN",
        "country_name": "中国",
        "rank": 1,
        "score": 18,
        "finish_time": "2023-03-26T02:59:06",
        "data_region": "CN",
        "insert_time": "2023-03-26T04:34:28.298000",
        "attendedContestsCount": 116,
        "old_rating": 3065.1544669116574,
        "new_rating": 3174.170162632678,
        "delta_rating": 109.01569572102062,
        "predict_time": "2023-03-26T04:38:28.557000"
    }
]
@baoliay2008
Copy link
Owner

你好,finish_time 为用户完成时间,insert_time 和 predict_time 分别是写入数据库时间和预测时间(对外均几乎没有意义)。

时区都是UTC时间。

@cs-moushuai
Copy link
Author

问题已解决

@baoliay2008 baoliay2008 added the question Further information is requested label Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants