Forum Discussion
Altera_Forum
Honored Contributor
14 years agohow to turn seconds into h:m:s???
for example: "56783"seconds turn into the format of "h:m:s" is "15:46:23". I used the method of comparasion,i.e.confirm the hours first, 15*3600 < 56783 < 16*3600,so I confim the hour is 15. ...
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- We don't expect to use the "/=" ,it causes delay. when the value of seconds is big,it may need several clocks. --- Quote End --- There is no big value for seconds. Its counter goes 0 ~ 59. You count on clock edge every 1sec time.