From 96a449476838cd1fdfcc8c93863a16722eff58d0 Mon Sep 17 00:00:00 2001 From: "Arthur G.P. Schuster" Date: Sat, 9 Aug 2025 20:55:57 +0200 Subject: [PATCH] add support for durations and timestamps --- index.html | 12 ++++++ src/lib.rs | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 119 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 49da250..1fec599 100644 --- a/index.html +++ b/index.html @@ -199,6 +199,18 @@ name + " is " + string(age) + " years old and " + (active ? "active" : "inactive true}}} + +
+

Time and Date Operations

+ Expression: some_date < now - old ? 'old' : 'recent' + Context: {"some_date": "2023-10-01T12:00:00Z", "now": + "2023-10-03T12:00:00Z", "old": "24h"}