Hello,
I'm using CR1000s with OS.Std.25.
A example code from CRBasic help file,
described as "Serial String to Date String Conversion",
works correctly on previous OS version(24 or older),
but NOT on OS.Std.25.
Is that bug ?
Or, please let me know how to do.
regards,
S.Tosa
Yes, that will be corrected in the next OS release. In the meantime try something like this:
Public TimeLong As Long
Public UTCTime(4) As String * 30
Public UTC_OFFSET_HR As Long = -7
BeginProg
Scan (1,Sec,0,0)
TimeLong = Public.Timestamp(1,1) + (UTC_OFFSET_HR * 3600)
UTCTime(1) = SecsSince1990(TimeLong,1)
UTCTime(2) = SecsSince1990(TimeLong,2)
UTCTime(3) = SecsSince1990(TimeLong,3)
UTCTime(4) = SecsSince1990(TimeLong,4)
NextScan
EndProg
Janet,
Thanks for your reply.
I tried and got a fine result.
from far east, JPN
I just wasted two hours before discovering this post. Frustrating...