Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3197

cannot search timestamp channel with chnfind

$
0
0

We're trying to build a script that will cut up our data sets into days. At the moment we're building a function that uses ChnFind to locate the channel position of the first entry whose date is higher than midnight of each day, and use that to divide up the dates. However, we can't get the chnfind function to work.

 

Initially we tried searching for the date as a timestamp, but the chnfind seemed unable to process it - it kept saying it was expecting a ), but nothing seemed to be missing.

 

 

Ch("0R1R1W0FResults/hitsTimestamp")> 2016/03/18 00:00:00.0000

 

Is the evaluated result that's getting fed into the function (after double quotation marks are parsed), but it's throwing an error.

 

We then tried convert it using TTR for the comparison, but that threw a type mismatch.

Finally, we tried using instr to locate the first value which contained the correct date, but that also threw a type mismatch.

 

Is it possible to run these comparisons on a timestamp channel? If so, how?


Viewing all articles
Browse latest Browse all 3197

Trending Articles