Timezone in php

by Prabakaran 2012-08-24 12:55:18

<?php
$timezone = new DateTimeZone("Asia/Kolkata" );
$date = new DateTime();
$date->setTimezone($timezone );
echo $date->format( 'H:i:s A / D, M jS, Y' );
?>
840
like
0
dislike
0
mail
flag

You must LOGIN to add comments