Jump to content

Save current time and date as timestamp, and display on screen


Recommended Posts

Hi, 

I have a Jazz unit set up to count accumulated hours in detail. (Hour, min, sec)

I currently have the ability to reset the accumulated time manually via a combination of key presses.

 

I would like to save the reset  date and time in MM/DD/YYYY & HH:MM;SS format, and display this on the display.

I tried writing the current date to some MI, and display those integers, but the numbers are in a strange format. 

Can someone help me out here?

 

Thanks.

  • Like 1
Link to comment
Share on other sites

  • MVP 2023

The current date and time are bundled together in the SI registers so that a four digit number represents hours and minutes and/or month and day in a single number.

You're going to have to do some math to strip them apart by dividing by 100 and then extracting the remainder out of SI 4.

Post your program so we can have a look.

Joe T. 

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