From: Siraaj Khandkar Date: Thu, 18 Mar 2021 10:27:43 +0000 (-0400) Subject: Add TODO to implement rfc3339->epoch X-Git-Tag: 0.5.0~1 X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;ds=inline;h=b8528cc73daeda854f08bab692e1978e7e438fa0;p=tt.git Add TODO to implement rfc3339->epoch and remove dependency on rfc3339-old --- diff --git a/TODO b/TODO index 6f8ab85..3249706 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,4 @@ +- [ ] Implement rfc3339->epoch and remove dependency on rfc3339-old - [ ] remove dependency on http-client - [ ] optional text wrap - [ ] write diff --git a/tt.rkt b/tt.rkt index c505f98..ce76863 100644 --- a/tt.rkt +++ b/tt.rkt @@ -74,6 +74,8 @@ (date->string (seconds->date [msg-ts_epoch msg]) #t)) nick uri color text)]))))) +; TODO Implement rfc3339->epoch and remove dependency on rfc3339-old + (define str->msg (let ([re (pregexp "^([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}(:[0-9]{2})?)(\\.[0-9]+)?([^\\s\t]*)[\\s\t]+(.*)$")]) (λ (nick uri str)