mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-03 08:24:19 +01:00
this PR is a continue of #252 and #277 to resolve #158. - supports modifiers in `time(..)` functions ``` limbo> select time('now'); 11:35:22 limbo> select time('now', '+2 hours', '-3 hours'); 10:35:02 limbo> explain select time('now', '+2 hours', '-3 hours'); addr opcode p1 p2 p3 p4 p5 comment ---- ----------------- ---- ---- ---- ------------- -- ------- 0 Init 0 7 0 0 Start at 7 1 String8 0 2 0 now 0 r[2]='now' 2 String8 0 3 0 +2 hours 0 r[3]='+2 hours' 3 String8 0 4 0 -3 hours 0 r[4]='-3 hours' 4 Function 1 2 1 time 0 r[1]=func(r[2..]) 5 ResultRow 1 1 0 0 output=r[1] 6 Halt 0 0 0 0 7 Transaction 0 0 0 0 8 Goto 0 1 0 0 ``` Closes #305