--- parser3/www/htdocs/Attic/index.html 2002/03/27 15:30:39 1.28
+++ parser3/www/htdocs/Attic/index.html 2002/03/28 14:26:49 1.29
@@ -7,7 +7,10 @@ $response:charset[windows-1251]
$response:content-type[$.value[text/html]$.charset[$response:charset]]
@main[]
-^exceptionTypes[]
+^cacheexpireschanging[]
+#^cacheexpiresfixed[]
+#^dateoffsets[]
+#^exceptionTypes[]
#^roll2[]
#^rolls[]
#^exceptions1[]
@@ -112,6 +115,27 @@ $response:content-type[$.value[text/html
OK
+@cacheexpireschanging[]
+^cache[$DB_HOME/keyключ][^date::now(+1)]{ ^rem{1 day}
+ ^cache[^date::now(+4/24/60/60)]
+# ^cache(2)
+ ^cache(0)
+ ^math:random(100)
+}
+
+
+
+@cacheexpiresfixed[]
+^cache[$DB_HOME/keyключ][^date::now(+2/24/60/60)]{
+ ^math:random(100)
+}
+
+@dateoffsets[]
+$d[^date::create(^date::now[]+1/24/60)]
+#$d[^date::now(+1/24/60)]
+^d.sql-string[]
+#$d
+
@exceptionTypes[]
# parser.compile ^test[} компиляция (непарная скобка, ...)
# parser.runtime ^if(0). параметры (больше/меньше, чем нужно, не тех типов, ...)