- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$score = 0;
$score2 = 0;
$created = '2014-01-19 09:23:00';
$created2 = "0923";
$score += date('Hm', strtotime($created)) / 100;
$score2 += $created2 / 100;
echo $score."\n";
echo $score2;