Advertisement
Guest User

Untitled

a guest
Nov 17th, 2021
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.57 KB | None | 0 0
  1. (de getEventsFromTimeStamp (origin timestamp)
  2.     (let (dbOrigin (db 'name '+EventOrigin origin)
  3.                    events (solve '(@CreatedAt (cons timestamp T)
  4.                                    @Origin origin
  5.                                    (select (@Event)
  6.                                            ((createdAt +Event @CreatedAt)
  7.                                             (origin +Event @Origin))
  8.                                            (range @CreatedAt @Event createdAt)))))
  9.       (if (not (== dbOrigin NIL))
  10.           events
  11.         "Wrong event origin")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement