01:
02:
03:
04:
05:
06:
07:
08:
09: reloadables=[]
10:
11:
12:
13:
14:
15: def hms2int(hh,mm,ss):
16: return (hh*60+mm)*60+ss
17:
18: def int2hms(n):
19: (hm,ss)=divmod(n,60)
20: (hh,mm)=divmod(hm,60)
21: return (hh,mm,ss)
22:
23: def canonicalhms(*x):
24: return int2hms(hms2int(*x))
25:
26: def canonical12(*x):
27: (hh,mm,ss)=int2hms(hms2int(*x))
28: hh=hh%12
29: if 4<=hh<12:
30: return (hh+12,mm,ss)
31: else:
32: return (hh,mm,ss)
33:
34: def canonical24(*x):
35: (hh,mm,ss)=int2hms(hms2int(*x))
36: return (hh%24,mm,ss)
37:
38:
PyScore
A badly written regatta scoring programme in Python and PyGtk.
register
relational
standing
tabulate
timesheet
treemodel
utility
Copyright 2004, M.E.J.Draisey
This file is part of pyscore.
pyscore is free software; you can redistribute it and/or modify it under
the terms of the GNU General
Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option)
any later version.
pyscore is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with pyscore; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Formatted with
GNU source-highlight:
http:// www.gnu.org/ software/ src-highlite