… | |
… | |
508 | $text .= "UNLIMITED"; |
508 | $text .= "UNLIMITED"; |
509 | } elsif ($rules->{timesys} == TIMESYS_ABSOLUTE) { |
509 | } elsif ($rules->{timesys} == TIMESYS_ABSOLUTE) { |
510 | $text .= util::format_time $rules->{time}; |
510 | $text .= util::format_time $rules->{time}; |
511 | $text .= " ABS"; |
511 | $text .= " ABS"; |
512 | } elsif ($rules->{timesys} == TIMESYS_BYO_YOMI) { |
512 | } elsif ($rules->{timesys} == TIMESYS_BYO_YOMI) { |
513 | $text .= util::format_time $rules->{time} - $rules->{interval} * $rules->{count}; |
513 | $text .= util::format_time $rules->{time}; |
514 | $text .= sprintf " + %s (%d) BY", util::format_time $rules->{interval}, $rules->{count}; |
514 | $text .= sprintf " + %s (%d) BY", util::format_time $rules->{interval}, $rules->{count}; |
515 | } elsif ($rules->{timesys} == TIMESYS_CANADIAN) { |
515 | } elsif ($rules->{timesys} == TIMESYS_CANADIAN) { |
516 | $text .= util::format_time $rules->{time}; |
516 | $text .= util::format_time $rules->{time}; |
517 | $text .= sprintf " + %s/%d CAN", util::format_time $rules->{interval}, $rules->{count}; |
517 | $text .= sprintf " + %s/%d CAN", util::format_time $rules->{interval}, $rules->{count}; |
518 | } |
518 | } |