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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.