Paolo Bonzini wrote:
>> { "12131415.16", 13, " 1039788916 Fri Dec 13 14:15:16 2002" },
>> { "12131415.16", 13, " 1039788916 Fri Dec 13 14:15:16 2002" },
>
> Uhm, why 2002? You could pre-generate all possible outputs from 2009
> to 2038 and only one of them will be checked.
Good idea. But at least with a date in December,
I'll stop at 2037, in order to keep the second count under 2^31.
I'll be adding the lines generated by this, one way or another:
for i in $(seq 2009 2037); do
date -u -d "$i-12-13 14:15:16" \
"+{ \"12131415.16\", 13, \" %s %a %b %d %T %Y\" },"
done
{ "12131415.16", 13, " 1260713716 Sun Dec 13 14:15:16 2009" },
{ "12131415.16", 13, " 1292249716 Mon Dec 13 14:15:16 2010" },
{ "12131415.16", 13, " 1323785716 Tue Dec 13 14:15:16 2011" },