Jump to content

Retrieve and search chat history: Difference between revisions

m (→‎{{header|zkl}}: change output)
Line 292:
back :=10; // days in the past
needle :=vm.nthArg(0); // search string
foreach d in ([-back+1..0]){ // we want day -9,-8,-7..0 (today)
date date :=Time.Date.subDaddYMD(ymd.xplode(), back0,0,d); // date minus days
do(back){
url :=template.fmt(date.xplode());
haystack:=CURL.get(url); // (request bytes, header length)
haystack=haystack[0].del(0,haystack[1]); // remove HTML header
Line 308:
<pre>
$ zkl bbb suchenwi
http://tclers.tk/conferences/tcl/2017-04-2324.tcl
 
http://tclers.tk/conferences/tcl/2017-04-23.tcl
------
m 2017-04-23T0624T05:2133:25Z53Z {} {suchenwi has become available}
m 2017-04-23T0624T06:3738:30Z31Z suchenwi :D{Hi Arjen - and bye. off to donuts}
m 2017-0504-01T2224T06:1755:15Z57Z {} {suchenwi has left}
...
------
Line 323:
------
...
http://tclers.tk/conferences/tcl/2017-05-0203.tcl
------
m 2017-05-01T22:17:15Z {} {suchenwi has left}
m 2017-05-02T16:18:36Z ijchain {* avl42 hopes that one of suchenwi's weekend projects will deal with that ...}
------
m 2017-05-03T16:19:54Z {} {suchenwi has become available}
m 2017-05-03T16:20:40Z suchenwi {/me waves}
m 2017-05-03T16:21:57Z suchenwi {I'm on countdown at work: 17 work days to go...
...
</pre>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.