--- parser3/www/htdocs/Attic/index.html 2002/03/27 15:30:39 1.28 +++ parser3/www/htdocs/Attic/index.html 2002/03/29 10:26:01 1.30 @@ -7,7 +7,11 @@ $response:charset[windows-1251] $response:content-type[$.value[text/html]$.charset[$response:charset]] @main[] -^exceptionTypes[] +^rolls2[] +#^cacheexpireschanging[] +#^cacheexpiresfixed[] +#^dateoffsets[] +#^exceptionTypes[] #^roll2[] #^rolls[] #^exceptions1[] @@ -112,6 +116,34 @@ $response:content-type[$.value[text/html
OK +@rolls2[] +$now[^date::now[]] +$d[^date::create($now.year;$now.month)] ^d.sql-string[]
+^for[i](1;12){ + ^d.roll[month](-1) ^d.sql-string[]
+} + +@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). параметры (больше/меньше, чем нужно, не тех типов, ...)