i am using 2.7.   I need to print the time in seconds from the epoch with 
millisecond precision.  i have tried many things but have failed.  heres my 
latest:

        from time import time, strftime
        from datetime import datetime, time

        #  write date, time, then seconds from epoch
        self.logfile.write('%s\t'%(strftime("%Y-%m-%d",)))
        self.logfile.write('%s\t'%(now.strftime("%H:%M:%S",)))
        self.logfile.write('%s\t'%(now.time()))


what am i doing wrong?  what should i be doing here?  Thanks!
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to