Date Time
Date Time Interface
Describes Date Time interface.
date
Retrieve random date.
$date = $random->date($from = date("Y-m-d", strtotime("-5 years")), $to = date("Y-m-d", strtotime("+5 years")));
time
Retrieve random time.
$time = $random->time();
datetime
Retrieve random datetime.
$datetime = $random->datetime($from = date("Y-m-d H:i:s", strtotime("-5 years")), $to = date("Y-m-d H:i:s", strtotime("+5 years")));
timestamp
Retrieve random timestamp.
$timestamp = $random->timestamp($from = strtotime("-5 years"), $to = strtotime("+5 years"));