Jump to content

UniLogic Date-to-String or Numeric-to-String?


Recommended Posts

I can't for the love of me found how to convert a RTC date into a string, to keep it in a data table or a struct.

Timestamping! How is it possible in UniLogic?

Can I somehow pack the RTC into a string like "26/Sep/2014" and store that string or RTC Struct in a data table? Or is there some special kind of struct I can use for this?

Link to comment
Share on other sites

  • MVP 2023
3 minutes ago, kvlada said:

There must be something  similar in Unilogic.

There is not.  There are quite a few functions in Vision that don't exist in UniStream.   PWM and Linearize Array immediately come to mind.

The thing about a function in Vision is you don't know what the assembly code looks like under the hood to get that function to work.  We got spoiled by some of that stuff.

Here's the RTC to ASCII udfb I lifted from the example programs.  Looking through it gives us an indicator of what kind of somersaults the Vision programmers performed for that function.  You can call it overkill if you wish.  But it does work.

Joe T.

RTC to ASCII V2.ulle

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...