#969605 snapshot.debian.org: please make it possible to figure out which timestamp one is currently using

#969605#5
Date:
2020-09-05 21:10:38 UTC
From:
To:
Hi,

this wishlist bug was made in the context of the development of
debbisect: https://salsa.debian.org/debian/devscripts/-/merge_requests/177/

Currently it is possible to pass an arbitrary timestamp of the form
%Y%m%dT%H%M%SZ in a snapshot.d.o URL and one will still get some
results. This is cool but it would be nice if there was a way to find
out which snapshot timestamp one actually ended up using. Given two
timestamps X and Y which are closer together than six hours, it is
currently very hard to determine (one would have to download and compare
Packages and Sources files) whether one is looking at the same snapshot
or different snapshots.

In the context of debbisect, knowing the precise timestamp one is
currently investigating would help in determining which snapshot to
investigate next.

This wishlist bug could either be solved by

 - documenting how an arbitrary date is turned into a snapshot timestamp
   (this would probably require a machine readable list of all snapshot
   timestamps -- see #969603) or by
 - providing an API function which turns an arbitrary date into a
   snapshot timestamp

Thanks!

cheers, josch

#969605#10
Date:
2020-11-27 17:34:33 UTC
From:
To:
As far as I can tell you figured out the latter is already possible
(https://salsa.debian.org/debian/devscripts/-/merge_requests/177/#note_200046)

For next/prev which you allude to in that comment I guess that would
mean a mr endpoint for archives.  The info is in
/archive/{archive}/{date}/ but that's not useful as an API.  If you want
to propose an API for this it doesn't look like it should be too hard to
add.

Cheers,
Julien