doc:appunti:prog:timezone_php_python
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:prog:timezone_php_python [2017/02/09 11:41] – niccolo | doc:appunti:prog:timezone_php_python [2017/02/09 12:52] – [Pacchetto Debian python-tz] niccolo | ||
---|---|---|---|
Line 17: | Line 17: | ||
</ | </ | ||
- | ===== Pacchetti | + | ===== Pacchetto |
- | * **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-31 02:00:00 CEST | 1427760000 | |
doc/appunti/prog/timezone_php_python.txt · Last modified: 2017/02/09 12:55 by niccolo