gmyth-stream/lib.py
branchtrunk
changeset 473 b94790c04fd5
child 474 07c12d2ceddf
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gmyth-stream/lib.py	Fri Mar 30 23:12:52 2007 +0100
     1.3 @@ -0,0 +1,7 @@
     1.4 +import time
     1.5 +
     1.6 +def now():
     1.7 +    return time.strftime("%Y-%m-%d %H:%M:%S");
     1.8 +
     1.9 +def log(msg):
    1.10 +    print "[%s] %s" % (now(), msg)