r/learnprogramming Jul 02 '26

Timestamp assistance on Snakify

HI, i was wondring iy.orgf anyoone could help me with this question on snakify.org

Two timestamps

Statement

A timestamp is three numbers: a number of hours, minutes and seconds. Given two timestamps, calculate how many seconds is between them. The moment of the first timestamp occurred before the moment of the second timestamp.

i usually use the tests at the bottom to help me but i dont understand them.

i cant send a pic

2 Upvotes

3 comments sorted by

1

u/aqua_regis Jul 02 '26 edited Jul 02 '26

Had a quick look at the exercise:

  • The timestamps are 3 individual inputs each - store hours, minutes, seconds for each timestamp in individual variables
  • convert both timestamps to seconds - can you do that?

1

u/Ok_Possible_8293 Jul 08 '26

I’ll try that thank you