[PHP] Re: mktime()'s is_dst deprecated, but needed?

2006-10-17 Thread Ivo F.A.C. Fokkema
On Sun, 15 Oct 2006 13:22:02 +0200, Zora wrote: Hi all, (first time I send an email here, so please be forgiving if something doesn't follow expected rules.) My web application allows users to enter time stamps (date and time) given as local times. The time stamp is to be stored as UTC

[PHP] Re: mktime

2005-09-12 Thread Brian P. O'Donnell
Dan Brow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] A little confused with mktime, I'm trying to get how many days are in a year. $year = 2006; $epoch = mktime(0, 0, 0, 1, 0, $year); // I have to have 1 for month or I get which day it is now. Which sucks. $date = date(z Y,

[PHP] Re: mktime() Algorithm

2002-02-06 Thread Philip Hallstrom
You could look at the source code for PHP On Wed, 6 Feb 2002, David A Dickson wrote: I need to create a function in another programming language that takes the same input as the php mktime() function and produces the exact same output as the php mktime() function. Does anybody out there

[PHP] Re: mktime() Algorithm

2002-02-06 Thread Alan McFarlane
Most langauges have support for this type of function - i.e. the number of seconds since 1970. Check your language manual... David A Dickson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I need to create a function in another programming language that takes

[PHP] Re: mktime and variables not working

2002-01-03 Thread George Nicolae
mktime have the folloing format int mktime (int hour, int minute, int second, int month, int day, int year) I don't understand what represent $x[stop]. maybe time in hh:mm:ss format? if is that you ca use $reformat_stop=explode(:,$x[stop].:.1:1:2001)

[PHP] Re: mktime() problem

2001-10-23 Thread liljim
Hi James, I'm running 4.0.6 on a Solaris 8 box. The output given by echo mktime(0,0,0,1,1,1970); is 3600. Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write this we are in daylight savings (GMT+1). Would this make a difference? (I have already tried I uploaded

RE: [PHP] Re: mktime() problem

2001-10-23 Thread james . fairbairn
PROTECTED] Subject: [PHP] Re: mktime() problem Hi James, I'm running 4.0.6 on a Solaris 8 box. The output given by echo mktime(0,0,0,1,1,1970); is 3600. Shouldn't it be 0? My box's locale is set to the UK defaults, so as I write this we are in daylight savings (GMT+1). Would this make