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

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.