- 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
);
}
inkanus-gray 15.10.2014 17:26 # +3
anonimb84a2f6fd141 15.10.2014 21:37 # −7
Xom94ok 16.10.2014 19:21 # +1
UTC+2, значит.
3.14159265 16.10.2014 20:39 # +2
guest 17.10.2014 20:16 # −2
3.14159265 17.10.2014 21:21 # +2
guest 17.10.2014 21:34 # −2
guest 17.10.2014 20:21 # −2