コード例 #1
0
ファイル: end_timer.py プロジェクト: DekiChan/check-me
def endTimer(data, current_time):
	start = data[0]['start_time']
	pause = data[0]['pause']

	total_workspan = checkmetools.timeDifference(current_time, start)
	total_timespan = total_workspan - computeTotalPause(pause)
	
	data[0]['total_workspan'] = total_workspan
	data[0]['total_timespan'] = total_timespan
	data[0]['end_time'] = current_time
	return data
コード例 #2
0
ファイル: end_timer.py プロジェクト: juree/check-me
def endTimer(data, current_time):
    start = data[0]['start_time']
    pause = data[0]['pause']

    total_workspan = checkmetools.timeDifference(current_time, start)
    total_timespan = total_workspan - computeTotalPause(pause)

    data[0]['total_workspan'] = total_workspan
    data[0]['total_timespan'] = total_timespan
    data[0]['end_time'] = current_time
    return data
コード例 #3
0
ファイル: restart_timer.py プロジェクト: juree/check-me
def setDuration(pause, current_time):
    pause['duration'] = checkmetools.timeDifference(current_time,
                                                    pause['start'])
    pause['end'] = current_time
    return pause
コード例 #4
0
ファイル: restart_timer.py プロジェクト: DekiChan/check-me
def setDuration(pause, current_time):
	pause['duration'] = checkmetools.timeDifference(current_time, pause['start'])
	pause['end'] = current_time
	return pause