ソースを参照

DateComponent : ajout getTotalMinutes

feature/symfony6.1
Guillaume 2年前
コミット
be3562b49d
1個のファイルの変更5行の追加0行の削除
  1. +5
    -0
      Component/DateComponent.php

+ 5
- 0
Component/DateComponent.php ファイルの表示

@@ -70,4 +70,9 @@ class DateComponent
return $hour ;
}

public function getTotalMinutes(\DateTimeInterface $time): int
{
return (int) $time->format('H') * 60 + (int) $time->format('i');
}

}

読み込み中…
キャンセル
保存