Пример #1
0
 /**
  * Returns a human readable string representing time allowed for the buffer
  *
  * @return string
  */
 public function readableTime($specify = 'remaining_buffer_minutes')
 {
     if ($this->{$specify} >= 0) {
         return ReadableTimeInterval::timeDuration($this->{$specify} * 60, 'wdh');
     }
     return "(Late)" . ReadableTimeInterval::timeDuration(-$this->{$specify} * 60, 'wdh');
 }
Пример #2
0
 /**
  * Returns a human readable string representing time on the constraint
  *
  * @return string
  */
 public function readableTime()
 {
     return ReadableTimeInterval::timeDuration($this->data['minutes'] * 60);
 }