Lines Matching defs:dt
1452 * @param int $dt timestamp
1457 function datetime_h($dt)
1461 $ago = time() - $dt;
1489 * @param int|null $dt timestamp when given, null will take current timestamp
1496 function dformat($dt = null, $format = '')
1500 if (is_null($dt)) $dt = time();
1501 $dt = (int)$dt;
1504 $format = str_replace('%f', datetime_h($dt), $format);
1505 return strftime($format, $dt);