doc:appunti:prog:timezone_php_python
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:appunti:prog:timezone_php_python [2017/02/09 11:25] – created niccolo | doc:appunti:prog:timezone_php_python [2017/02/09 12:55] (current) – [Timestamp con ora solare/legale] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Gestione delle timezone in Python e PHP ====== | ====== Gestione delle timezone in Python e PHP ====== | ||
+ | |||
+ | ===== La timezone del PHP ===== | ||
Per verificare qual' | Per verificare qual' | ||
Line 14: | Line 16: | ||
date.timezone = " | date.timezone = " | ||
</ | </ | ||
+ | |||
+ | ===== Pacchetto Debian python-tz ===== | ||
+ | |||
+ | Contiene un database delle timezone. Consente di istanziare oggetti di tipo **tzinfo**, ad esempio **'' | ||
+ | |||
+ | ==== Timestamp con ora solare/ | ||
+ | |||
+ | Nella tabella che segue ogni **timestamp** (calcolato come distanza dallo **Unix epoch** del 1970-01-01 00:00:00 UTC) è distante dal successivo **86400** secondi, cioè un giorno intero. La rappresentazione in orario locale (CET) mostra che è intervenuto il cambio da ora solare ad ora legale: | ||
+ | |||
+ | ^ Ora locale | ||
+ | | 2015-03-28 01:00:00 CET | ||
+ | | 2015-03-29 01:00:00 CET | ||
+ | | 2015-03-30 02:00:00 CEST | 1427673600 | 2015-03-30T00: | ||
+ | | 2015-03-31 02:00:00 CEST | 1427760000 | 2015-03-31T00: |
doc/appunti/prog/timezone_php_python.1486635903.txt.gz · Last modified: 2017/02/09 11:25 by niccolo