src/Peach/DT/FieldAdjuster.php
public function moveUp(Map $fields)
    {
        $key        = $this->key;
        $upperKey   = $this->upperKey;
        $max        = $this->max;
        $min        = $this->min;
        $field      = $fields->get($key);
        $upperField = $fields->get($upperKey);
        
        $range  = $max - $min + 1;
        $amount = intval(($field - $min) / $range);
        $fields->put($upperKey, $upperField + $amount);
        $fields->put($key, ($field - $min) % $range + $min);
    }
public function moveUp(Map $fields)
    {
        $key        = $this->key;
        $upperKey   = $this->upperKey;
        $max        = $this->max;
        $min        = $this->min;
        $field      = $fields->get($key);
        $upperField = $fields->get($upperKey);
        
        $range  = $max - $min + 1;
        $amount = intval(($field - $min) / $range);
        $fields->put($upperKey, $upperField + $amount);
        $fields->put($key, ($field - $min) % $range + $min);
    }
指定された値の繰り上がり処理を行います.
この関数は Time::adjust() から呼び出されます.

@param Map $fields 調整対象のフィールド一覧
@ignore