if condition usisng GPS time data

Hi Everyone!

I’m having trouble finding a solution for using an if condition based off of the time provided by my GPS. I was able to create an if condition using altitude also provided by my GPS but it does not seem to be working the same way for time. Any ideas? I’ve attached the code, not sure if that is the right way to do it here.

Here is the way the date and time are displayed in the serial monitor:
2018-07-28 20:49:2424

Thanks!

carterdataloggerfinalalttest2.ino (10.3 KB)

You've done the best you can. The posting window allows for a maximum of 6,000 characters where your code is over 10K, so unless you split it in two...

What looking at your code doesn't reveal however, is what are you trying to do with the time? You say you want to implement an if condition, to test what? Seconds? Minutes? The number of colons?