This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-12-20 21:12:47

flashgocrazy
Scratcher
Registered: 2011-01-12
Posts: 500+

Importing time in python

How do you set a var to the time on a computer in python 2.7?
thanks,
flash  smile


◕‿◕

Offline

 

#2 2011-12-20 23:38:40

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Importing time in python

Code:

import time
var = time.clock()
var = time.time()

Look up the difference. But they both do the same thing.

Offline

 

#3 2011-12-21 09:07:02

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Importing time in python

Advanced Topics usually have to do with Scratch, so I think these Python questions should be in the Misc. section.

I’m not sure though.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

Board footer