- date: documentation ( source)
- strtotime: documentation ( source)
<?php
//echo strtotime('22.01.2014 04:40 +4').PHP_EOL;
//echo strtotime('22.01.2014 04:40 +04').PHP_EOL;
//echo strtotime('22.01.2014 04:40 UTC+4').PHP_EOL;
//echo strtotime('22.01.2014 04:40 GMT+4').PHP_EOL;
$online = '22.01.2014 04:40 +3 hours +0400';
$online = strtotime($online);
echo date(DATE_RFC822, $online).PHP_EOL;
echo date("H:i d.m.Y", $online).PHP_EOL;