time displaying

35 views
Skip to first unread message

maer...@gmail.com

unread,
Dec 29, 2024, 3:03:52 AM12/29/24
to Numbas Users
Hello 

For this question: 

I want to ask how much time there is between 2 times. 

I want e.g. the time 8 hours and 5 minutes to display as 08 : 05 , now it shows 8 : 5.

Is there an elegant way to make numbas show this zero when the number is smaller than 10?

Thanks

Johan

Don Shearman

unread,
Dec 29, 2024, 5:54:39 PM12/29/24
to numbas...@googlegroups.com
HI Johan

It's not a particularly elegant solution but I've dealt with something similar in this question https://numbas.mathcentre.ac.uk/question/share/view/e4b38048-4ea540fc-aecf-0e6f29ed91e9 (see the variable meetingTime). Hope this helps.

Regards

Don Shearman


--
You received this message because you are subscribed to the Google Groups "Numbas Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to numbas-users...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/numbas-users/d8621808-0e23-48ef-bd53-c897609b0cd6n%40googlegroups.com.

maer...@gmail.com

unread,
Dec 31, 2024, 9:06:23 AM12/31/24
to Numbas Users
This will certainly help, thank you very much !! 
Regards Johan 

Op zondag 29 december 2024 om 23:54:39 UTC+1 schreef Don Shearman:

Christian Lawson-Perfect

unread,
Jan 7, 2025, 9:16:56 AM1/7/25
to numbas...@googlegroups.com

--
Reply all
Reply to author
Forward
0 new messages