"destruk" wrote:
if dt is rodatetime, then yeah, that's probably how it works.
AsSeconds() as Integer
Returns the date/time as the number of seconds from the Unix epoch (00:00:00 1/1/1970 GMT)
But it is after 2011, so it will always be expired as long as you're using
<Active expires="1310598793">Keys</Active>
You might try Active@expires for your parsing routine - I don't think active.expires is correct there.
You'd also need to parse the value as an integer, since it'll be a string in the XML.
' Get current time
dt = CreateObject("roDateTime")
If dt.AsSeconds() > xml.Active@expires.ToInt() Then
' expired
Else
' not expired
End If
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)