question

Upvotes
Accepted
89 2 6 9

time problem

RTMD service


OmmConsumer consumer(config.host("1**.***.***.*:14002").username("EM1_****_*********"));        consumer.registerClient(ReqMsg().serviceName("hEDD").domainType(MMT_MARKET_PRICE).name("ESZ1m"), client)        sleep(1200000); 


I get the following updates:

UpdateMsg
    streamId="5"
    domain="MarketPrice Domain"
    updateTypeNum="0"
    seqNum="23296"
    name="ESZ1m"
    serviceId="259"
    serviceName="hEDD"
    Payload dataType="FieldList"
        FieldList
            FieldEntry fid="17" name="ACTIV_DATE" dataType="Date" value="06 DEC 2021"
            FieldEntry fid="5" name="TIMACT" dataType="Time" value="12:37:00:000:000:000"
            FieldEntry fid="4148" name="TIMACT_MS" dataType="UInt" value="45434283"
            FieldEntry fid="731" name="BEST_BSIZ2" dataType="Real" value="16"
            FieldEntry fid="6545" name="NO_BIDORD2" dataType="UInt" value="14"
            FieldEntry fid="740" name="NO_BIDMKR2" dataType="Real" value="14"
        FieldListEnd


    PayloadEnd
UpdateMsgEnd
UpdateMsg
    streamId="5"
    domain="MarketPrice Domain"
    updateTypeNum="0"
    seqNum="23312"
    name="ESZ1m"
    serviceId="259"
    serviceName="hEDD"
    Payload dataType="FieldList"
        FieldList
            FieldEntry fid="17" name="ACTIV_DATE" dataType="Date" value="06 DEC 2021"
            FieldEntry fid="5" name="TIMACT" dataType="Time" value="12:37:00:000:000:000"
            FieldEntry fid="4148" name="TIMACT_MS" dataType="UInt" value="45434283"
            FieldEntry fid="730" name="BEST_BSIZ1" dataType="Real" value="4"
            FieldEntry fid="6544" name="NO_BIDORD1" dataType="UInt" value="4"
            FieldEntry fid="291" name="NO_BIDMMKR" dataType="Real" value="4"
        FieldListEnd


I get real time where the time stamp is in UTC, how do I change the time to exchange Chicago time?

ema-apirefinitiv-real-timetime-stamp
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.

1 Answer

Upvote
Accepted
38.1k 69 35 53

@s61670

The time in the time fields is in UTC. This can't be changed.

You need to implement the code to convert UTC time to other time zones.


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.

Can you help with an example of such code?

@s61670

You can find several methods by searching via Google. For example:

Click below to post an Idea Post Idea