Hi guys,
Is it somehow possible to disable DST in date() function? I am
currently in UTC+1 timezone which has DST enabled but data i am
processing are throughout the year in UTC+1 without DST. So, how can i
disable automatic DST processing of date() function?
Thanks in advance! 7 4930 mk****@gmail.com wrote:
Hi guys,
Is it somehow possible to disable DST in date() function? I am
currently in UTC+1 timezone which has DST enabled but data i am
processing are throughout the year in UTC+1 without DST. So, how can i
disable automatic DST processing of date() function?
Thanks in advance!
Hi,
Not 100% sure, but isn't this function made for that?
date_default_timezone_set() http://nl2.php.net/manual/en/functio...mezone-set.php
PHP5 and higher only.
Read the usercontributed notes for hints/links to solution in PHP4
Hope that helps.
Regards,
Erwin Moller
Erwin Moller wrote:
mk****@gmail.com wrote:
>Hi guys,
Is it somehow possible to disable DST in date() function? I am currently in UTC+1 timezone which has DST enabled but data i am processing are throughout the year in UTC+1 without DST. So, how can i disable automatic DST processing of date() function?
Thanks in advance!
Hi,
Not 100% sure, but isn't this function made for that?
date_default_timezone_set()
addition: feed it 'Europe/London' for offset 0.
I think. ;-)
Be sure to test before believing me. :P
Erwin http://nl2.php.net/manual/en/functio...mezone-set.php
PHP5 and higher only.
Read the usercontributed notes for hints/links to solution in PHP4
Hope that helps.
Regards,
Erwin Moller
On 23 Nov, 12:17, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
>
addition: feed it 'Europe/London' for offset 0.
I think. ;-)
Be sure to test before believing me. :P
I'm not actually in London but we have daylight savings time in the UK
(only its called 'BST' for British Summer Time to differentiate from
the movable feasts celebrated in other countries ;).
Try using 'GMT' or 'Zulu' or 'UTC'
C.
Erwin Moller wrote:
addition: feed it 'Europe/London' for offset 0.
I think. ;-)
London observes daylight saving.
'UTC' might be better.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 17:39.]
It'll be in the Last Place You Look http://tobyinkster.co.uk/blog/2007/11/21/no2id/ mk****@gmail.com wrote:
Hi guys,
Is it somehow possible to disable DST in date() function? I am
currently in UTC+1 timezone which has DST enabled but data i am
processing are throughout the year in UTC+1 without DST. So, how can i
disable automatic DST processing of date() function?
Thanks in advance!
What about using gmdate() and adding an hour?
On Fri, 23 Nov 2007 14:09:32 +0100, C. ( http://symcbean.blogspot.com/)
<co************@gmail.comwrote:
On 23 Nov, 12:17, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
>> addition: feed it 'Europe/London' for offset 0. I think. ;-)
Be sure to test before believing me. :P
I'm not actually in London but we have daylight savings time in the UK
(only its called 'BST' for British Summer Time to differentiate from
the movable feasts celebrated in other countries ;).
Well, it's the UK after all. No matter how you adjust your time, seeing
'daylight' is more dependant on the rare absence of clouds :P
--
Rik Wasmus
Rik Wasmus wrote:
Well, it's the UK after all. No matter how you adjust your time, seeing
'daylight' is more dependant on the rare absence of clouds :P
It was nice and sunny for me today. Freezing cold, sure, but clear blue
skies.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 1 day, 12 min.]
It'll be in the Last Place You Look http://tobyinkster.co.uk/blog/2007/11/21/no2id/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Amitabh Deepak |
last post by:
Is there any way to check whether daylight saving is enabled on a linux machine?
|
by: Drew |
last post by:
Is there a way to check if it is daylight savings or not via c#? I have
heard you can use System.Globalization?
Thanks - Drew
|
by: Brett Edman |
last post by:
I created a UTC clock using this:
UTCTime = MyTime.ToUniversalTime()
Now that we've turned the clocks ahead 1 hour for daylight savings time, the
clock is reporting the wrong UTC time. It is...
|
by: Robm |
last post by:
Since googling this issue only brings up the April fool's problem, which was
solved years ago, I hope that somebody can help me with this. I have a large
vc++/mfc application which needs to know...
|
by: Chirag Shukla |
last post by:
Colleagues,
I wanted to share a function to find if a date is in Daylight Saving
Time or not. I was able to make this function faster than reading MSDN
to find functions that .NET provides. I...
|
by: maflatoun |
last post by:
Hi everyone,
I have 3 different time zones that I'm working with. Basically
converting from UTC to those 3 time zones.
Eastern Daylight Time (GMT -04:00, New York)
Central Daylight Time (GMT...
|
by: maflatoun |
last post by:
Hi everyone,
I have 3 different time zones that I'm working with. Basically
converting from UTC to those 3 time zones.
Eastern Daylight Time (GMT -04:00, New York)
Central Daylight Time (GMT...
|
by: luke_airig |
last post by:
I'm not sure if this is the right group for this posting. If not,
please accept my apologies.
I have been tasked with identifying and correcting application code
that will be affected by the...
|
by: bernhard Hoyler |
last post by:
Hi,
I would like to determine whether at a certain time point in time the
daylight savings time is in effect. This means such a logic should show
that today (16-Nov-2007) no daylight savings...
|
by: RobG |
last post by:
I was investigating a function to determine whether daylight saving
was being observed on a particular date (given the platform's regional
settings) and came across a suggestion at merlyn.com to...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |