Add unixtime function to parser.ts

This commit is contained in:
kwaroran
2024-04-25 00:44:54 +09:00
parent eceeb98768
commit 2d1a504cdb

View File

@@ -733,7 +733,9 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
case 'prefill_supported':{ case 'prefill_supported':{
return db.aiModel.startsWith('claude') ? '1' : '0' return db.aiModel.startsWith('claude') ? '1' : '0'
} }
case 'unixtime':{
return (Date.now() / 1000).toFixed(2)
}
} }
const arra = p1.split("::") const arra = p1.split("::")
if(arra.length > 1){ if(arra.length > 1){