[LON-CAPA-users] accessing timestamps in problems
Thu, 27 May 2004 10:48:49 -0600 (MDT)
> > I am trying to access times when different parts of a problem were
> > correctly solved within that problem. We have successfully accessed
> > information like if it has been solved by using
> > &EXT("user.resource.resource.partid.solved");
> > but I don't know the syntax for calling timestamps associated with
> > when it was solved.
> This will be difficult but not impossible.
> You'll have to start understanding the way the data is stored to get
> usable info.
> Will get you the timestamp of the first submission.
> So you will need to figure out which submission they got it correct on
> and then get the timestamp for that submission.
We actually tried that and it seems like that timestamp doesn't exist. If
$time = &EXT("user.resource.resource.1:timestamp");
The variable is always undefined (missing in the scriptvars), even after
we had submitted something. We thought it might be because the timestamp
is an array, so we also tried
@time = &EXT("user.resource.resource.1:timestamp");
The array was always empty. Then we thought that timestamps might not be
stored in the construction space, so we published the resource and tried
it in a class, but still no go. What do think might be wrong? Thanks!