- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
public static function getCurrentRawDate($yesterday = false) {
if ($yesterday) {
$date = strtotime("-1 days");
} else {
$date = time();
}
$raw = explode("-", date("Y-m-d", $date));
list($year, $month, $day) = $raw;
return array(
"year" => $year,
"month" => $month,
"day" => $day
);
}