- floor: documentation ( source)
- date: documentation ( source)
- define: documentation ( source)
- sprintf: documentation ( source)
<?php
define('ROTATE_PERIOD', 2);
echo date('Y_m_d_H_') . sprintf("%02d", (floor(date('i') / ROTATE_PERIOD) * ROTATE_PERIOD));