diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-03 04:33:00 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-03 04:33:00 (GMT) |
commit | 84ad60151ed011458254cd579c37a5d2fadafb35 (patch) | |
tree | a7768dc0cbf159188380455afd97cb56f8c76793 /utils.py | |
parent | 4e06f49609e92c52980c45a47c755166b597a517 (diff) |
getting there...
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@859 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -6,6 +6,8 @@ import cairo import gc import gtk from hashlib import md5 +import time +from time import strftime from sugar import util import _camera @@ -84,9 +86,9 @@ def scaleSvgToDim( handle, dim ): return scale -def getDateString( time ): +def getDateString( when ): #todo: internationalize the date - return strftime( "%a, %b %d, %I:%M:%S %p", time.localtime(time) ) + return strftime( "%a, %b %d, %I:%M:%S %p", time.localtime(when) ) def grayScalePixBuf( pb, copy ): |