question

Upvotes
Accepted
3 0 1 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.

Monitored by @Wasin Waeosri

I have created TRDC case 05946238 to investigate this issue

Hello all and @Wasin Waeosri,

Extended triage by one week

@sean.mahony

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Upvotes
Accepted
24.6k 54 17 14

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
24.6k 54 17 14

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 1 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.

Hello @sean.mahony

Thank you for the information. I have created TRDC case 05946238 to investigate this issue.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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