[ome-devel] date annotations
josh.moore at gmx.de
josh.moore at gmx.de
Wed Jan 14 08:16:30 GMT 2009
Bernhard Voigt writes:
> Hi folks!
Hiya Bernhard!
> I'm looking for a way to add dates to certain annotations. It should be
> implemented that it is search and sortable on the database level and not
> only application level. Is there something available for this purpose or
> would I create for example a struct like this:
>
> result = XMLAnnotationI()
> result.ns = RString('acapella.result')
> result.textvalue = RString('<xml><result>...</result></xml>')
> date = LongAnnotation()
> date.ns = RString('user.utc_seconds')
> date.longValue = RLong(1000000) // some utc time expressed in seconds since
> 1.1.1970 - not the current time
> result.linkAnnotation(date)
A TimestampAnnotation is probably what you want. It is also a long of
milliseconds since the epoch, but is strongly typed. Let us know if
that fulfills all your needs. We've had one request to either modify
this annotation or add another annotation for durations, but we
haven't gotten a consensus on that yet.
> Thanks! Bernhard
Of course. Best wishes, ~Josh.
More information about the ome-devel
mailing list