locked Re: Decoding UDP messages from WSJT-X


UR5FCM Kii
 

Ok here I found UInt32 TheTime = GetQUInt32(bt, ref offset);
            int seconds = (int)TheTime / 1000;
           
            string strT = string.Format("{0:00}:{1:00}:{2:00}", seconds / 3600, (seconds / 60) % 60, seconds % 60);
image.png

вс, 22 дек. 2019 г. в 15:51, UR5FCM Kii via Groups.Io <garik38=gmail.com@groups.io>:

Hello all!
How convert qtime to normal string time?
 UInt32 TheTime = GetQUInt32(bt, ref offset);
            double time = TheTime / 60 / 60 / 24 / 1000;
That return 0.0 value
But TheTime = 49815000

пт, 20 дек. 2019 г. в 16:41, UR5FCM Kii via Groups.Io <garik38=gmail.com@groups.io>:
Sorry not have System.Buffers.Binary in my Vs 2010


пт, 20 дек. 2019 г. в 16:01, Bill Somerville <g4wjs@...>:
On 20/12/2019 13:32, UR5FCM Kii wrote:
But using System.Buffers.Binary; not found in assembly reference/

OM,

that class has been in .Net core since v2.1:

https://docs.microsoft.com/en-us/dotnet/api/system.buffers.binary.binaryprimitives?view=netcore-3.1

73
Bill
G4WJS.

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#5009): https://groups.io/g/WSJTX/message/5009
Mute This Topic: https://groups.io/mt/30462433/1951721
Mute #wsjtx: https://groups.io/mk?hashtag=wsjtx&subid=6281644
-=-=-
Moderated by Andy K3UK and Roger G4HZA
-=-=-
Group Owner: WSJTX+owner@groups.io
Unsubscribe: https://groups.io/g/WSJTX/leave/6281644/1876820730/xyzzy  [garik38@...]
-=-=-=-=-=-=-=-=-=-=-=-


--
Log4Win not only general logging software, but also contest logger
73! Bye Now, Igor / UR5FCM
RU-QRP-C#237

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#5010): https://groups.io/g/WSJTX/message/5010
Mute This Topic: https://groups.io/mt/30462433/1951721
Mute #wsjtx: https://groups.io/mk?hashtag=wsjtx&subid=6281644
-=-=-
Moderated by Andy K3UK and Roger G4HZA
-=-=-
Group Owner: WSJTX+owner@groups.io
Unsubscribe: https://groups.io/g/WSJTX/leave/6281644/1876820730/xyzzy  [garik38@...]
-=-=-=-=-=-=-=-=-=-=-=-


--
Log4Win not only general logging software, but also contest logger
73! Bye Now, Igor / UR5FCM
RU-QRP-C#237

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#5026): https://groups.io/g/WSJTX/message/5026
Mute This Topic: https://groups.io/mt/30462433/1951721
Mute #wsjtx: https://groups.io/mk?hashtag=wsjtx&subid=6281644
-=-=-
Moderated by Andy K3UK and Roger G4HZA
-=-=-
Group Owner: WSJTX+owner@groups.io
Unsubscribe: https://groups.io/g/WSJTX/leave/6281644/1876820730/xyzzy  [garik38@...]
-=-=-=-=-=-=-=-=-=-=-=-


--
Log4Win not only general logging software, but also contest logger
73! Bye Now, Igor / UR5FCM
RU-QRP-C#237

Join main@WSJTX.groups.io to automatically receive all group messages.