Jump to content

Output RTC in Time/Date format


JotaPey

Recommended Posts

 I need to output a time/date stamp to a DTI in the format dd-mmm-yyyy hh:nn:ss.  I am able to output the time/date stamp using the "Date Time to UTC" function, but this outputs in a numeric format, which I believe is Unix Time.  Is there a way to then convert that format to my desired format?

Link to comment
Share on other sites

Thanks for the UDFB, Flex727.  So I'm struggling to understand how I incorporate this into my logic.  

I called the function in my main function and entered my UTC in the A field, this worked as I was able to confirm in online mode that the UDFB parsed out the hour, minutes, seconds, days, etc.  I assigned an ASCII tag to the the B Field of the Call Function, but there was no resultant output in that field.  

I'm wondering if I need to do something with the logic in the last rung (Region2.Rung8) the comments say "Placing the result"  

Thanks for any help you can provide!

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