This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Converting M/D/Y dates to timestamps.

Help for those learning Tcl or writing their own scripts.
Locked
v
vans
Voice
Posts: 20
Joined: Thu Aug 09, 2007 7:21 am

Converting M/D/Y dates to timestamps.

Post by vans »

Hey everyone

I have this tvrage lookup script that on the !next command tells the user the next episode of the tv show they wanted.

It works great but i was wondering if there is a way to convert the M/D/Y dates which is used by the script into timestamps so i can parse them and create a countdown next episode? e.g. the next episode is blahblah [1 week, 2 days, 10 hours away]

This script uses this page (this example is using Chuck):
http://www.tvrage.com/quickinfo.php?show=chuck

I hope this makes sense and thanks in advance.

-Vans
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

There are 2 tvrage.com scripts. And there are corresponding support threads for both, iirc. You should specify which script you're talking about, and post under the appropriate thread. The tvrage script from gaveup that I'm unofficially maintaining already does announces for upcoming shows, but I assume you're talking about a different script.

Post replies in the thead for the right script in the release/support forum.
Locked