Retrieve and search chat history: Difference between revisions

Line 189:
 
=={{header|Mathematica}}==
<lang Mathematica>matchFrom[url_String, str_String] := Select[StringSplit[Import[url, "String"], "\n"], StringMatchQ[str]]
Select[StringSplit[Import[url, "String"], "\n"], StringMatchQ[str]]
 
getLogLinks[n_] :=
Select[Import["http://tclers.tk/conferences/tcl/", "Hyperlinks"],
First[
StringCases[#1, "tcl/" ~~ date__ ~~ ".tcl" :> DateDifference[DateObject[URLDecode[date], TimeZone -> "Europe/Berlin"], Now]]] <=
DateObject[URLDecode[date], TimeZone -> "Europe/Berlin"],
Now]]] <=
Quantity[n, "Days"] & ]
 
Line 211 ⟶ 207:
{{out}}
<pre>http://tclers.tk/conferences/tcl/2017%2d09%2d25.tcl
 
-----
 
m 2017-09-25T14:38:02Z hypnotoad {I'm lazy and the old implementation was called "zvfs", and there a lot of kit builders who are looking for that command}