def windowuptime(window_name):
tmp_time = _remote_windowuptime(window_name)<EOL>if tmp_time:<EOL><INDENT>tmp_time = tmp_time.split('<STR_LIT:->')<EOL>start_time = tmp_time[<NUM_LIT:0>].split('<STR_LIT:U+0020>')<EOL>end_time = tmp_time[<NUM_LIT:1>].split('<STR_LIT:U+0020>')<EOL>_start_time = datetime.datetime(int(start_time[<NUM_LIT:0>]), int(start_time[<NUM_LIT:1>]),<EOL>int(start_time[<NUM_LIT:2>]), int(start_time[<NUM_LIT:3>]),<EOL>int(start_time[<NUM_LIT:4>]), int(start_time[<NUM_LIT:5>]))<EOL>_end_time = datetime.datetime(int(end_time[<NUM_LIT:0>]), int(end_time[<NUM_LIT:1>]),<EOL>int(end_time[<NUM_LIT:2>]), int(end_time[<NUM_LIT:3>]),<EOL>int(end_time[<NUM_LIT:4>]), int(end_time[<NUM_LIT:5>]))<EOL>return _start_time, _end_time<EOL><DEDENT>return None<EOL>
Get window uptime

@param window_name: Window name to look for, either full name,
LDTP's name convention, or a Unix glob.
@type window_name: string

@return: "starttime, endtime" as datetime python object