View Single Post
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#124
Originally Posted by aspidites View Post
Why not just int(time.time()) ?

Not sure what you are trying to do, but perhaps time.strftime() will save you some work?
int did the trick. should have guessed I missed the easiest way and went wrong with more complex operations

i need linux time to string that is written to rtcom database.
time.time() seems to give xxxxxxxxxxx.xx by default and I had to get a rid from those decimals.

now I only need courage to write my string to db.

e: and figure out how to use quotation marks. is there any other options besides " & ' ?
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search

Last edited by ossipena; 2010-05-06 at 10:22.