To report local time for any Germans : setlocale « Utility Function « PHP






To report local time for any Germans

 
<?php 

$ts_au = mktime(); 

$ts_de = $ts_au - (9 * 3600);

echo date('H:m \o\n l d m Y', $ts_au); 

setlocale(LC_ALL, 'de_DE', 'german'); 

echo strftime('%H.%M Uhr, am %A dem %d %B %Y', $ts_de); 
?>
  
  








Related examples in the same category

1.Setting a default locale
2.Setting a default locale based on system environment
3.Setlocale() Options
4.Generating Localized GMT/UTC Time and Date Strings
5.Displaying Times and Dates in Other Languages
6.setlocale(LC_MONETARY, 'en_DK');
7.setlocale(LC_MONETARY, 'en_US');
8.Preferred locale for Chinese
9.Preferred locale for German
10.Preferred locale for Russian