PHP Classes

germandate: Generates German date strings using date() syntax

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 45%Total: 566 All time: 5,398 This week: 794Up
Version License Categories
germandate 1.0GNU General Publi...Time and Date
Description 

Author

This package is specific mainly for applications used in Germany Germany .

Date() is a very good function to render date strings. But it is difficult to generate german date strings. This class uses the standard date() syntax and replaces the outputs for the D, l (small L), F and M format strings with the German counterparts. Note that the German short day format is only two chars long, not three. Monday is not Mon but Mo in short format "D". An example can be seen in the class heading comment. Use the standard date() syntax and have German date strings.

Date() ist eine sehr gute PHP-Funktion, wenn es darum geht, Datumsstrings zu erzeugen. Aber die Produktion von Deutschen Datumsstrings macht Probleme. Diese Klasse benutzt die Standard Date()-Syntax und ersetzt die Ausgaben für die D, l (kleines L), F und M - Formatstrings mit den deutschen Gegestücken. Beachten Sie, dass das deutsche Kurzformat für die Tagesbezeichnungen nur zwei Zeichen lang ist, nicht drei. Montag ist nicht Mon sondern Mo im Kurzformat "D". Ein Beispiel ist in dem der Klasse vorangestellten Kommentar zu sehen. Benutzen Sie die normale date()-Syntax um deutsche Datumsstrings zu erzeugen.

Picture of Peter Klauer
Name: Peter Klauer <contact>
Classes: 18 packages by
Country: Germany Germany
Age: 65
All time rank: 352 in Germany Germany
Week rank: 91 Down5 in Germany Germany Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Plain text file germandate.php Class The class file. Demo call in heading comment.

 Version Control Unique User Downloads Download Rankings  
 0%
Total:566
This week:0
All time:5,398
This week:794Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:81%StarStarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:45%StarStarStar
Rank:3228