I'm attempting to compare T[now] with other T values. The issue here is the other T vales are in AM and PM format and the T[now] is in military.
The other T vales are pulled out of an XML file, placed in into values, and then constructed into a T format via a set statement (new Time() ).
So my question is... How do i compare T[now] and my pulled XML values?
Please do not say make them strings..
Have you read the Programming Guides? Specifically the expression language reference guide?
There is a whole section on how to work with Time. Just know that the ISO format HH-MM-SS it talks about is wrong, it's actually HH:MM:SS.
I promise you that this works, and is possible, you just need to get the syntax down.
Also, you don't have to use two If steps to check if it's within business hours. You can do this instead.
if(t[now].after(open) && t[now].before(close))
Unless of course you care about before work hours, and after work hours separately.
i.e., "The early bird gets recording: we haven't opened yet..." VS "Oh snap, you just missed us..."