[mythtv-users] UTC and database starttime

Yan Seiner yan at seiner.com
Tue Jan 21 23:03:43 UTC 2014


I've been beating my head against UTC in python for a while now...

The database returns the timestamp in this format:

2008-08-24 15:30:00-07:00

However, to feed it to mythutil or transcode, I need it in UTC, all 
smushed together:

20080824223000

I've been searching in vain for some neat, clean way to convert the date 
I get out of the database into UTC and reformat it into the starttime 
format....

How does one go about this?


More information about the mythtv-users mailing list