def HSTsync(sim, cam, verbose):
try:<EOL><INDENT>if isinstance(sim.startutc, datetime):<EOL><INDENT>reqStart = sim.startutc.timestamp()<EOL>reqStop = sim.stoputc.timestamp()<EOL><DEDENT>elif isinstance(sim.startutc, (float, int)):  <EOL><INDENT>reqStart = sim.startutc<EOL>reqStop = sim.stoputc<EOL><DEDENT>else:<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT><DEDENT>except AttributeError:  <EOL><INDENT>try:<EOL><INDENT>treqlist = atleast_1d(sim.treqlist)<EOL>if isinstance(treqlist[<NUM_LIT:0>], datetime):<EOL><INDENT>treqlist = array([t.timestamp() for t in treqlist])<EOL><DEDENT>elif isinstance(treqlist[<NUM_LIT:0>], (float, int)):<EOL><INDENT>pass  <EOL><DEDENT>elif isinstance(treqlist[<NUM_LIT:0>], str):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>logging.error(<EOL>'<STR_LIT>')<EOL>reqStart = <NUM_LIT:0.>  <EOL>reqStop = <NUM_LIT>  <EOL><DEDENT><DEDENT>except AttributeError:<EOL><INDENT>reqStart = <NUM_LIT:0.>  <EOL>reqStop = <NUM_LIT>  <EOL>
this function now uses UT1 time -- seconds since 1970 Jan 1