Mercurial > eagle-eye
comparison pyikriam/sync_utils.py @ 194:015ac84d038c
Fix hour-2-seconds translation.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Mon, 03 Nov 2008 01:51:47 +0800 |
parents | bf4ddf5bffb9 |
children |
comparison
equal
deleted
inserted
replaced
193:a6a4a48d5fda | 194:015ac84d038c |
---|---|
54 '%s is an invalid time interval string' % (repr(tv_str)) | 54 '%s is an invalid time interval string' % (repr(tv_str)) |
55 tv = 0 | 55 tv = 0 |
56 | 56 |
57 value = tmo.group(2) # hour | 57 value = tmo.group(2) # hour |
58 if value: | 58 if value: |
59 tv = tv + int(value) * 360 | 59 tv = tv + int(value) * 3600 |
60 pass | 60 pass |
61 | 61 |
62 value = tmo.group(4) # minute | 62 value = tmo.group(4) # minute |
63 if value: | 63 if value: |
64 tv = tv + int(value) * 60 | 64 tv = tv + int(value) * 60 |