|
|
|
<?
/**************************************************************
* Conversion of US Date into German Date *
* See http://www.gabber.de/ for "working" Example ;-)) *
* *
* Author: Mark Kronsbein (mk@html-design.com) *
* Last Modified Date: 27 March 1999 *
* NOTE: Most of this code is made by *
* Frédéric Pierron (pierron@ext.jussieu.fr) *
* I just translated it and modified it a bit. *
*-------------------------------------------------------------*
* Konvertierung des US-Datums in das deutsche *
* Auf http://www.gabber.de/ sieht man ein Beispiel ;-)) *
* *
* Autor: Mark Kronsbein (mk@html-design.com) *
* Datum der letzten Änderung: 27. März 1999 *
* Anmerkung: Der meiste Code an diesem Script stammt von *
* Frédéric Pierron (pierron@ext.jussieu.fr) *
* Ich habe den Code nur modifiziert und übersetzt. *
*-------------------------------------------------------------*
* Original script: *
* http://px.sklar.com/code-pretty.html?code_id=112 *
* http://px.sklar.com/code.html?code_id=112 *
**************************************************************/
/* Name der Tage auf deutsch */
/* Name of days in German */
$name_tag[0] = "Sonntag";
$name_tag[1] = "Montag";
$name_tag[2] = "Dienstag";
$name_tag[3] = "Mittwoch";
$name_tag[4] = "Donnerstag";
$name_tag[5] = "Freitag";
$name_tag[6] = "Samstag";
/* Name der Monate auf deutsch */
/* Name of months in German */
$name_monat[1] = "Januar";
$name_monat[2] = "Februar";
$name_monat[3] = "März"; /* März dürfte aber auch funktionieren */
$name_monat[4] = "April";
$name_monat[5] = "Mai";
$name_monat[6] = "Juni";
$name_monat[7] = "Juli";
$name_monat[8] = "August";
$name_monat[9] = "September";
$name_monat[10] = "Oktober";
$name_monat[11] = "November";
$name_monat[12] = "Dezember";
$num_tag = date( "w");
$num_monat = date( "m");
/* Test, ob der aktuelle Monat < 10 ist */
/* Is the current month < 10th month */
$test = substr($num_monat,0,1);
if ($test == "0") {
$num = substr($num_monat,1,1);
$num_monat = $num;
}
$jahr = date( "Y");
$n = date( "d");
$tag = $name_tag[$num_tag];
$monat = $name_monat[$num_monat];
print "Heute ist $tag, der $n. $monat $jahr";
?>
|
|
| A Timing Class Categories : PHP, PHP Classes, Date Time | | | Finding the day of the week for a specific date.
Categories : PHP, Databases, MySQL, Date Time | | | A PHP Calendar function with CSS : add a cool calendar to any php page by just adding a calendar class based function. Categories : PHP, PHP Classes, Calendar, Date Time | | | A wrapper function to format dates coming from a databases with the
same syntax as PHP's date() function. Categories : Date Time, Databases, PHP | | | pcCalendar class - Allows for the creation of calendars in HTML pages. All output functions can be easily overridden, refer to article 1471 for an example.
Categories : PHP, Date Time, Calendar, PHP Classes | | | PHP Round Clock - Must have Gif support to use this. Categories : PHP, Date Time, Graphics | | | A simple and fast calendar combining PHP and tables. Use this as a base for applications in which a calendar is needed. Categories : Date Time, PHP, Complete Programs, Calendar | | | Open and Close your website in fixed times . Categories : PHP, PHP Classes, Cron, Date Time | | | mysql date/time converters Categories : PHP, MySQL, Databases, Date Time | | | If you want to create select buttons featuring current date this example will show you how... Categories : Date Time, HTML and PHP, PHP | | | Creates three SELECT form fields: Month, Day, and Year. You give it a string which will be used to make the name for the three fields, and a number of seconds to use as the default date. If you give it blank for this value, the current date is used. Categories : HTML and PHP, PHP, Date Time | | | Example of using the pcCalendar class, article 1468 on weberdev.com. Calendar example. Categories : PHP, Date Time, PHP Classes, Calendar | | | Monthly and Daily Upcoming Events calendar. Categories : Date Time, PostgreSQL, PHP, Calendar, Databases | | | calculus of the eastersunday Categories : BC math, PHP, Date Time, Databases | | | Functions used to define a schedule of holidays. Can define non-fixed holidays (eg. 3rd sunday of June). Categories : Calendar, Date Time, PHP | |
|
|
|