Hamish Cox
Hamish Cox

Reputation: 13

How to get and compare the time with Pebble JavaScript?

This sounds really obvious but I actually cannot find a time variable or something. I want to create a school timetable app for my pebble but I can't find the reference or variable that tells me this info. I would expect something that would end up like (Python because I know it better and don't want to use JS right now):

if (hour == 10) and (minute == 03):
  print("Next Lesson!")

So what are the variable name for these??? A link of all of them in Pebble would be good if that exists but I can't find it in the documentation.

Thanks for any help.

P.S. Please tell me I don't have to learn C just to write this...

Upvotes: 0

Views: 111

Answers (0)

Related Questions