Home | History | Annotate | Download | only in site_utils

Lines Matching refs:duration

20       * No options - use the default end time and duration.
22 * --until - use the given end time and the default duration.
23 * --duration - use the given duration and the default end time.
25 * --since --duration - use the given start time and duration.
26 * --until --duration - use the given end time and duration.
42 def _check_duration(self, arguments, duration):
43 start_time = (arguments.until - duration * 3600)
79 """Test time bounds with --duration only.
81 Also tests that --duration and -d are equivalent.
83 for option in ['--duration', '-d']:
84 duration = 4
85 duration_string = '%d' % duration
89 self._check_duration(arguments, duration)
103 """Test time bounds with --since and --duration."""
106 duration = 4
107 duration_string = '%d' % duration
111 self._check_duration(arguments, duration)
114 """Test time bounds with --until and --duration."""
117 duration = 4
118 duration_string = '%d' % duration
122 self._check_duration(arguments, duration)
128 duration = 4
129 duration_string = '%d' % duration
130 end_time = start_time + duration * 3600