ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pear-general
pear-general
[PEAR] RE: unix2MDBstamp() and day light savings
by Michael Caplan other posts by this author
May 13 2005 8:15PM messages near this date
[PEAR] Re: unix2MDBstamp() and day light savings | [PEAR] Re: unix2MDBstamp() and day light savings
That's not the code I was getting at.  I have no issue with the format you
use.  What I am referring to is this:

if (date('I', $unix_timestamp)) {             
	$unix_timestamp -= 3600;         
}

Since I celebrate daylight saving time, all my timestamps get an hour
knocked off when we are in daylight saving time.  



>  -----Original Message-----
>  From: Lukas Smith [mailto:lsmith@[...].net]
>  Sent: Thursday, May 12, 2005 1:24 PM
>  To: Michael Caplan
>  Cc: 'pear-general@lists.php.net'
>  Subject: Re: unix2MDBstamp() and day light savings
>  
>  Michael Caplan wrote:
>  
>  > Out of curiosity, what is reason behind knocking off an hour if the
>  system
>  > is celebrating daylight saving time?  For my purposes it is messing up a
>  > critical time based application.
>  
>  thats the code ..
>  date('Y-m-d H:i:s', $unix_timestamp);
>  
>  if you have anything better to suggest ...
>  
>  regards,
>  Lukas



CONFIDENTIALITY NOTICE
This message contains confidential information intended only for the use of
the individual or entity named as recipient. Any dissemination, distribution
or copying of this communication by anyone other than the intended recipient
is strictly prohibited. If you have received this message in error, please
immediately notify us and delete your copy. Thank you.

AVIS DE CONFIDENTIALITÉ
Les informations contenues aux présentes sont de nature privilégiée et
confidentielle. Elles ne peuvent être utilisées que par la personne ou
l'entité dont le nom paraît comme destinataire. Si le lecteur du présent
message n'est pas le destinataire prévu, il est par les présentes prié de
noter qu'il est strictement interdit de divulguer, de distribuer ou de
copier ce message. Si ce message vous a été transmis par mégarde, veuillez
nous en aviser immédiatement et supprimer votre copie. Merci.

-- 
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved