get_time() puts the data you want in a string, so you need to str_to_num() or equal[i]() to compare the data in an if statement.
You could check the "say /thetime" function from the default amxx package.
I'm not sure which plugin has that though, you'll need to look into that yourself.