Warning: file_put_contents(): Only -1 of 45 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
gettimeofday gmmktime Date/Time PHP Manual gmdate (PHP 4, 5) — Διαμορφώστε μία GMT/CUT ημερομηνία/ώρα Περιγραφή string ( $format [, int $timestamp ] ) Είνα...
Forum und email

gmdate

(PHP 4, PHP 5)

gmdate — Διαμορφώστε μία GMT/CUT ημερομηνία/ώρα

Περιγραφή

string gmdate ( string $format [, int $timestamp ] )

Είναι ακριβώς ίδια με τη συνάρτηση date(), αλλά η επιστρεφόμενη ώρα είναι η Greenwich Mean Time (GMT). Για παράδειγμα, όταν τρεχτεί στη Φιλανδία (GMT +0200), η πρώτη από τις ακόλουθες γραμμές θα τυπώσει "Jan 01 1998 00:00:00", ενώ η δεύτερη "Dec 31 1997 22:00:00".

Example#1 Παραδείγματα της gmdate()

echo date ("M d Y H:i:s", mktime (0,0,0,1,1,1998));
echo gmdate ("M d Y H:i:s", mktime (0,0,0,1,1,1998));

Ανατρέξτε επίσης στις: date(), mktime(), gmmktime() και strftime().