phpbar.de logo

Mailinglisten-Archive

[php] Zeitzonenkorrektur?

[php] Zeitzonenkorrektur?

Robert Breker breker_(at)_garagestudios.de
Wed, 29 Dec 1999 13:34:17 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0020_01BF5201.67B62B20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit


----- Original Message -----
From: Schwerd <Schwerd_(at)_bigfoot.com>
To: <php_(at)_solix.wiso.Uni-Koeln.DE>
Sent: Wednesday, December 29, 1999 1:03 PM
Subject: [php] Zeitzonenkorrektur?


> Hallo,
>
> ich habe ein PHP-Skript, welches auf einem US-Server läuft, aber deutsche
> Zeit und deutsches Datum benötigt. Hat jemand sowas schonmal gemacht?
siehe Anhang (koennte vieleicht einigen aus der Liste helfen)

------=_NextPart_000_0020_01BF5201.67B62B20
Content-Type: application/octet-stream;
	name="clock.php3"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="clock.php3"

<?php
#########################################################################=
#####
# TextClock                     	Version 1.0                          #
# Copyright 1996-98 Garage Studios	scripts_(at)_garagestudios.de             =
#
# Scripts bei:		           	http://www.garagestudios.de/php/     #
#########################################################################=
#####
# COPYRIGHT NOTICE                                                       =
    #
# Copyright 1999-2000 Garage Studios.  All Rights Reserved.              =
    #
#                                                                        =
    #
# TextClock may be used and modified free of charge by anyone so long as =
    #
# this copyright notice and the comments above remain intact.  By using =
this #
# code you agree to indemnify the Garage Studios from any liability that =
    #
# might arise from its use.                                              =
    #
#                                                                        =
    #
# Selling the code for this program without prior written consent is     =
    #
# expressly forbidden.  In other words, please ask first before you try =
and  #
# make money off of my program.                                          =
    #
#                                                                        =
    #
# Obtain permission before redistributing this software over the =
Internet or #
# in any other medium.  In all cases copyright and header must remain =
intact.#
#########################################################################=
#####

setlocale ("LC_TIME", "de_DE");
$dname =3D strftime("%A");
$d =3D strftime("%d");
$mname =3D strftime("%B");
$jahr =3D strftime("%Y");

switch($mname){
case January:
$mname =3D Januar;
break;
case February:
$mname =3D Februar;
break;
case March:
$mname =3D M&auml;rz;
break;
case May:
$mname =3D Mai;
break;
case June:
$mname =3D Juni;
break;
case July:
$mname =3D Juli;
break;
case December:
$mname =3D Dezember;
break;
}

switch($dname){
case Monday:
$dname =3D "Montag";
         break;
     case Tuesday:
$dname =3D "Dienstag";
         break;
     case Wednesday:
$dname =3D "Mitwoch";
         break;
         case Thursday:
$dname =3D "Donerstag";
         break;
     case Friday:
$dname =3D "Freitag";
         break;
     case Saturday:
$dname =3D "Samstag";
case Sunday:
$dname =3D "Sontag";
         }


         echo "$dname, der $d. $mname $jahr";
?>
------=_NextPart_000_0020_01BF5201.67B62B20--



php::bar PHP Wiki   -   Listenarchive