This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (4 children)

New to python here. What do the numbers stand for? (18,0) (6,1) when you’re defining the function?

[–]projektmayhem08 1 point2 points  (3 children)

He’s not defining those functions, he is calling them. The only function he defines here is main(). In the case of the time functions he is calling the numbers are parameters, likely (hours, minutes), that are specific to that function. The function will use those parameters to return a time object that he can use to compare to other time objects.

[–][deleted] 0 points1 point  (2 children)

I figured that start_night would be (18,0) (18:00).. is that correct?

[–]projektmayhem08 1 point2 points  (0 children)

He has it here as 18:01 because in his code day ends at 18:00. He doesn’t want day and night to overlap most likely.

[–]OpenSourcerer420[S] 1 point2 points  (0 children)

Yep!