gmyth-stream/server/lib.py
branchtrunk
changeset 505 b90373d8534b
child 511 16312d0021cb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gmyth-stream/server/lib.py	Thu Apr 05 15:15:12 2007 +0100
     1.3 @@ -0,0 +1,9 @@
     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 +    new_msg = "[%s] %s" % (now(), msg)
    1.11 +    print new_msg
    1.12 +    return new_msg