baoliay2008 / lccn_predictor

LeetCode Contest Rating Prediction
https://lccn.lbao.site
MIT License
570 stars 22 forks source link

api 提供的时间问题? #9

Closed cs-moushuai closed 1 year ago

cs-moushuai commented 1 year ago

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 commented 1 year ago

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

时区都是UTC时间。

cs-moushuai commented 1 year ago

问题已解决