DIR : /home/kozerus/public_html/dgs/dgs/code_examples/print_timezone.php
/home/kozerus/public_html/dgs/dgs/code_examples
<?php
chdir("../");
require_once( "include/quick_common.php" );
require_once( "include/filter_parser.php" );
{
$h = time() + date('Z');
putenv( 'TZ=GMT+1'); //so plus one
echo "\ngmdt=".gmdate('r',$h);
echo "\n dt=". date('r',$h);
putenv( 'TZ=GMT');
echo "\ngmdt=".gmdate('r',$h);
echo "\n dt=". date('r',$h);
putenv( 'TZ=GMT-1'); //so minus one
echo "\ngmdt=".gmdate('r',$h);
echo "\n dt=". date('r',$h);
echo "\n";
echo "\n";
putenv( 'TZ=UTC+1'); //so plus one
echo "\ngmdt=".gmdate('r \G\M\T',$h);
echo "\n dt=". date('r \G\M\T',$h);
echo "\ngmdt=".gmdate('r \U\T\C',$h);
echo "\n dt=". date('r \U\T\C',$h);
putenv( 'TZ=UTC');
echo "\ngmdt=".gmdate('r \G\M\T',$h);
echo "\n dt=". date('r \G\M\T',$h);
echo "\ngmdt=".gmdate('r \U\T\C',$h);
echo "\n dt=". date('r \U\T\C',$h);
putenv( 'TZ=UTC-1'); //so minus one
echo "\ngmdt=".gmdate('r \G\M\T',$h);
echo "\n dt=". date('r \G\M\T',$h);
echo "\ngmdt=".gmdate('r \U\T\C',$h);
echo "\n dt=". date('r \U\T\C',$h);
echo "\n";
}
?>
//
koh5_pano
Drag mouse to navigate.
Navigation
- Left/Right Mouse drag: Changes camera heading.
- Up/Sown Mouse drag: Changes camera pitch.
- Scroll wheel: Changes camera field of view.
- I-Key: Displays Info panel with canvas size, image size and FPS.
17.Aug.2010, Martin Wengenmayer