<?php
date_default_timezone_set('America/Sao_Paulo');
$time = mktime(12,0,0,1,15,2013);
$now = mktime(19,28,0,9,22,2013);
$agoraAqui = date("d/m/Y H:i:s", $now);
$antesAqui = date("d/m/Y H:i:s", $time);
date_default_timezone_set('America/Bahia');
$agoraLa = date("d/m/Y H:i:s", $now);
$antesLa = date("d/m/Y H:i:s", $time);
printf("Sao Paulo %-20s %-20s\n", $agoraAqui, $antesAqui);
printf("Bahia %-20s %-20s\n", $agoraLa, $antesLa);
preferences:
38.71 ms | 402 KiB | 5 Q