question

Upvotes
Accepted
3 0 0 1

Why do nanosecond time fields match OMMTypes.TIME and not OMMTypes.TIME_8

When I compare data.getType() for nanosecond fields they always equal OMMTypes.TIME. I never see time fields equal the 8 bytes type OMMTypes.TIME_8.
Is this correct?
When is OMMTypes.TIME_8 used and when should I test for it?

if( dataType == OMMTypes.TIME ||
dataType == OMMTypes.TIME_3 ||
dataType == OMMTypes.TIME_5 ||
dataType == OMMTypes.TIME_7 ||
dataType == OMMTypes.TIME_8 )


if( dataType == OMMTypes.DATETIME ||
dataType == OMMTypes.DATETIME_7 ||
dataType == OMMTypes.DATETIME_9 ||
dataType == OMMTypes.DATETIME_11 ||
dataType == OMMTypes.DATETIME_12 )

Thanks

treprfarfa-apitime-stampmifid
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
11.5k 16 7 10

Hi @sean.mahony

This is an expected behavior. While decoding, the RFA JAVA getType() function will only return TIME. The width specified TIME (like TIME_8) is used ONLY when encoding set definitions (Defined Data).

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
11.5k 16 7 10

Hi @sean.mahony , what is the version of RFA Java that you are using?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
3 0 0 1

Hi @Wasin Waeosri , I am using 8.1.0.L1

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea