Marco A. Calamari (marcoc at dada.it) wrote:
> In 0.4 how I can retrieve a key in the future
> or in the past ?
>
> Is the 0.3 method, i.e
>
> /yyyymmddhhhhhh-name//
>
> still valid ?
No, it's not.
In 0.4, the developers decided to use a non-human-readable date format.
So intead of "yyyymmdd000000-", the string for a daily DBR is actually
the Unix time() of that day's 0000 GMT, written in hexadecimal.
dwarf:/usr/local/cvs/Freenet-head/Contrib/fcptools/fcpget$ ./fcpget -htl 10
-v 5 SSK at 9G4s~jLQJB7ALQg-v2q5xKAJy9YPAgM/CoN// ~/foo
[...]
Redirect: SSK at 9G4s~jLQJB7ALQg-v2q5xKAJy9YPAgM/3bd8a780-CoN//
[...]
dwarf:/usr/local/cvs/Freenet-head/Contrib/fcptools/fcpget$ perl -e '$t =
time(); printf("%x\n", $t - $t%86400);'
3bd8a780
In English: get t = time() in C or perl, compute (t - t % 86400), and
convert that to base 16 (with lower-case letters, a la printf("%x")).
Hope that helps. And I had nothing to do with selecting this
representation, so please don't flame the messenger. :-{
--
Greg Wooledge | "Truth belongs to everybody."
greg at wooledge.org | - The Red Hot Chili Peppers
http://wooledge.org/~greg/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20011025/83d41942/attachment.pgp>