User Tools

Site Tools


doc:appunti:prog:timezone_php_python

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:appunti:prog:timezone_php_python [2017/02/09 11:41] niccolodoc:appunti:prog:timezone_php_python [2017/02/09 12:52] – [Pacchetto Debian python-tz] niccolo
Line 17: Line 17:
 </file> </file>
  
-===== Pacchetti Debian per Python =====+===== Pacchetto Debian python-tz =====
  
-  * **python-tz** database delle timezone. Consente di istanziare oggetti di tipo **tzinfo**, come ad esempio **''pytz.utc''** oppure **''pytz.timezone('CET')''**.+Contiene un database delle timezone. Consente di istanziare oggetti di tipo **tzinfo**, ad esempio **''pytz.utc''** oppure **''pytz.timezone('CET')''**. 
 + 
 +==== Timestamp con ora solare/legale ==== 
 + 
 +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                ^ Timestamp 
 +| 2015-03-28 01:00:00 CET    1427500800 | 
 +| 2015-03-29 01:00:00 CET    1427587200 | 
 +| 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