Marco A. Calamari ([EMAIL PROTECTED]) 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@9G4s~jLQJB7ALQg-v2q5xKAJy9YPAgM/CoN// ~/foo
[...]
Redirect: SSK@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."
[EMAIL PROTECTED] | - The Red Hot Chili Peppers
http://wooledge.org/~greg/ |
PGP signature