#1
|
|||
|
|||
Printing of System Time
I want to print system time for some actions such as keyboard in Vizard in a .dat file. I am able to access the elasped time but not the current system time in the hrs:min:sec format.
Has anybody done it? Thanks Uttama |
#2
|
|||
|
|||
Have a look at the time module that comes with Python. For example, this should print out the time in Hour:Minute:Second format:
Code:
import time print time.strftime('%H:%M:%S',time.localtime()) |
#3
|
|||
|
|||
It works fine.
Thanks |
|
|