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 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
14.3k 23 8 12

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 512.0 KiB each and 1.0 MiB total.

Upvotes
14.3k 23 8 12

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 512.0 KiB each and 1.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 512.0 KiB each and 1.0 MiB total.