- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
$t0=mktime(
preg_replace("/^....\-..\-..\ (..):..:..$/","$1",$task['end_date']),
preg_replace("/^....\-..\-..\ ..:(..):..$/","$1",$task['end_date']),
preg_replace("/^....\-..\-..\ ..:..:(..)$/","$1",$task['end_date']),
preg_replace("/^....\-(..)\-..\ ..:..:..$/","$1",$task['end_date']),
preg_replace("/^....\-..\-(..)\ ..:..:..$/","$1",$task['end_date']),
preg_replace("/^(....)\-..\-..\ ..:..:..$/","$1",$task['end_date'])
);
$t1=mktime(
preg_replace("/^....\-..\-..\ (..):..:..$/","$1",$task['real_end_date']),
preg_replace("/^....\-..\-..\ ..:(..):..$/","$1",$task['real_end_date']),
preg_replace("/^....\-..\-..\ ..:..:(..)$/","$1",$task['real_end_date']),
preg_replace("/^....\-(..)\-..\ ..:..:..$/","$1",$task['real_end_date']),
preg_replace("/^....\-..\-(..)\ ..:..:..$/","$1",$task['real_end_date']),
preg_replace("/^(....)\-..\-..\ ..:..:..$/","$1",$task['real_end_date'])
);
for($i=$t0;$i<=$t1;$i=$i+(60*60))
{
3_dar 13.07.2016 23:01 # 0
bormand 13.07.2016 23:03 # +2