Comment by TEbejer on 26/12/2022 at 05:55 UTC

1 upvotes, 1 direct replies (showing 1)

View submission: Update on COLO switchover -- bug fixes, reindexing and more

View parent comment

With the changes from before/after to until/since, can I still use code such as?:

`import datetime as dt`

`until = int(dt.datetime(2020,1,1,0,0).timestamp())`

`since = int(dt.datetime(2019,1,1,0,0).timestamp())`

I have looked up both commands in the new API documentation at both new API documentation links above and I don't understand from the descriptions how to use them.

I understand that the API will return no results with the dates i've written in the code above because they aren't loaded yet. Mostly just wondering how to use until and since for when the data has been loaded.

Thank you for your hard work!

Replies

Comment by s_i_m_s at 26/12/2022 at 15:47 UTC

3 upvotes, 1 direct replies

At a glance it should be fine, try it out on the comments side, the comments have been loaded, only the submissions haven't.

Old and new time range parameters are currently aliased together so either currently works, only major change to them is that it no longer accepts YYYY-MM-DD anything already using timestamp should continue to function.