Hello,
I need a timezone to store timestamps in that is independent of daylight
saving. From everything I've read, it seems I want either GMT or UTC.
The only problem is I can't figure out from any documentation I've read
if there is any difference (practically speaking, not scientifically and
taking into account the earth's orbit etc).
I can set my server timezone to GMT, but if I want UTC I will have to
use putenv('TZ=UTC' ). Could someone please confirm if they are in fact
the same or if one is better, and if I am correct in stating that
neither is affected by daylight saving? Lastly, if I set my server to
GMT (or UTC for that matter), am I also correct in saying that in that
case gmmktime() and gmdate() are the exact same as mktime() and date()?
Thank you very much in advance for your help. 12 2839
Marcus wrote:
Hello,
I need a timezone to store timestamps in that is independent of daylight
saving. From everything I've read, it seems I want either GMT or UTC.
The only problem is I can't figure out from any documentation I've read
if there is any difference (practically speaking, not scientifically and
taking into account the earth's orbit etc).
I can set my server timezone to GMT, but if I want UTC I will have to
use putenv('TZ=UTC' ). Could someone please confirm if they are in fact
the same or if one is better, and if I am correct in stating that
neither is affected by daylight saving? Lastly, if I set my server to
GMT (or UTC for that matter), am I also correct in saying that in that
case gmmktime() and gmdate() are the exact same as mktime() and date()?
Thank you very much in advance for your help.
I should elaborate on my first point and ask additionally if a call to:
mktime(12, 0, 0, 5, 10, 2007);
for example, will always return the exact same timestamp in either GMT
or UTC timezone and vice versa, i.e. 1 timestamp resulting in the exact
same 12:00:00 readout via date() whether GMT or UTC. Thanks.
date() returns server time. gmdate returns GMT (UTC) time.
All the dates in my database are stored as GMT/UTC and I display the users local
time onscreen.
Marcus wrote:
Marcus wrote:
>Hello,
I need a timezone to store timestamps in that is independent of daylight saving. From everything I've read, it seems I want either GMT or UTC. The only problem is I can't figure out from any documentatio n I've read if there is any difference (practically speaking, not scientifically and taking into account the earth's orbit etc).
I can set my server timezone to GMT, but if I want UTC I will have to use putenv('TZ=UTC' ). Could someone please confirm if they are in fact the same or if one is better, and if I am correct in stating that neither is affected by daylight saving? Lastly, if I set my server to GMT (or UTC for that matter), am I also correct in saying that in that case gmmktime() and gmdate() are the exact same as mktime() and date()? Thank you very much in advance for your help.
I should elaborate on my first point and ask additionally if a call to:
mktime(12, 0, 0, 5, 10, 2007);
for example, will always return the exact same timestamp in either GMT
or UTC timezone and vice versa, i.e. 1 timestamp resulting in the exact
same 12:00:00 readout via date() whether GMT or UTC. Thanks.
Snef wrote:
date() returns server time. gmdate returns GMT (UTC) time.
All the dates in my database are stored as GMT/UTC and I display the
users local time onscreen.
Thanks for the reply. In my initial post I said I was planning on
setting the server time to GMT, so in that case date() and gmdate()
would be the same, yes?
Also, from what you are saying, does that mean there is no difference
between GMT and UTC as far as timestamps are concerned? Thanks.
As far as i have read, UTC is the 'new' GMT. When you see the output of gmdate,
you will see that the result is in UTC.
Snef
Marcus wrote:
Snef wrote:
>date() returns server time. gmdate returns GMT (UTC) time.
All the dates in my database are stored as GMT/UTC and I display the users local time onscreen.
Thanks for the reply. In my initial post I said I was planning on
setting the server time to GMT, so in that case date() and gmdate()
would be the same, yes?
Also, from what you are saying, does that mean there is no difference
between GMT and UTC as far as timestamps are concerned? Thanks.
Snef wrote:
As far as i have read, UTC is the 'new' GMT. When you see the output of
gmdate, you will see that the result is in UTC.
Snef
Sorry to beat a dead horse here, but from what you are saying and the
documentation I've read, does that mean that the only real difference is
UTC is more accurate in its precision for a timestamp, such as if I want
to know the time right now it might be slightly more accurate to the
"official" time?
In other words, if I just want a representation for May 5, 2007 at 12:00
pm (or any other future time), are GMT and UTC identical and just as
good as each other? (i.e. I don't care if it reports this exact moment
in time as 1 microsecond off of whatever the atomic clock says, I just
want a reliable way of representing various future points in time via
timestamps that aren't affected by daylight saving).
Thanks.
as far as I understand (and use): yes
Marcus wrote:
Snef wrote:
>As far as i have read, UTC is the 'new' GMT. When you see the output of gmdate, you will see that the result is in UTC.
Snef
Sorry to beat a dead horse here, but from what you are saying and the
documentation I've read, does that mean that the only real difference is
UTC is more accurate in its precision for a timestamp, such as if I want
to know the time right now it might be slightly more accurate to the
"official" time?
In other words, if I just want a representation for May 5, 2007 at 12:00
pm (or any other future time), are GMT and UTC identical and just as
good as each other? (i.e. I don't care if it reports this exact moment
in time as 1 microsecond off of whatever the atomic clock says, I just
want a reliable way of representing various future points in time via
timestamps that aren't affected by daylight saving).
Thanks.
Marcus wrote:
Snef wrote:
>As far as i have read, UTC is the 'new' GMT. When you see the output of gmdate, you will see that the result is in UTC.
Snef
Sorry to beat a dead horse here, but from what you are saying and the
documentation I've read, does that mean that the only real difference is
UTC is more accurate in its precision for a timestamp, such as if I want
to know the time right now it might be slightly more accurate to the
"official" time?
In other words, if I just want a representation for May 5, 2007 at 12:00
pm (or any other future time), are GMT and UTC identical and just as
good as each other? (i.e. I don't care if it reports this exact moment
in time as 1 microsecond off of whatever the atomic clock says, I just
want a reliable way of representing various future points in time via
timestamps that aren't affected by daylight saving).
Thanks.
Try a little search: http://en.wikipedia.org/wiki/Coordinated_Universal_Time
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
In article <f9************ *************** ***@insightbb.c om>, JumpMan222
@aol.com says...
it seems I want either GMT or UTC.
The only problem is I can't figure out from any documentation I've read
if there is any difference
GMT is the obsolete name. The Greenwich observatory has been out
of the role of an official clock source for a long time.
UTC (Universal Coordinated Time) is the shorthand name for the
modern reference time at the prime meridian.
So, use UTC as the designation for your timezone reference.
The US military (and probably NATO) likes to call the
zero-offset timezone "zulu time", just to confuse everyone...
And another good practice is to use numerical offsets for
timezones instead of the 3-letter names. For example, saying
"EST" is confusing because it means something different
in Canada compared to the US. When control of timezone rules
remain in the hands of politicians, don't hard-code any assumptions.
Bob Devine
Jerry Stuckle wrote:
>
Try a little search:
http://en.wikipedia.org/wiki/Coordinated_Universal_Time
I actually read that entire page and spent the last 2 days googling but
never answered my question definitively. I only post to the newsgroup
after I exhaust all my search options and still am not sure. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mohammed Mazid |
last post by:
Can anyone please help me on how to move to the next and previous
question?
Here is a snippet of my code:
Private Sub cmdNext_Click()
End Sub
Private Sub cmdPrevious_Click()
showrecord
|
by: Stevey |
last post by:
I have the following XML file...
<?xml version="1.0"?>
<animals>
<animal>
<name>Tiger</name>
<questions>
<question index="0">true</question>
<question index="1">true</question>
</questions>
|
by: nospam |
last post by:
Ok, 3rd or is it the 4th time I have asked this question on Partial Types,
so, since it seems to me that Partial Types is still in the design or
development stages at Microsoft, I am going to ask it differently.
FOUR QUESTIONS:
The background:
I got three (3) files
|
by: Ekqvist Marko |
last post by:
Hi,
I have one Access database table including questions and answers. Now
I need to give answer id automatically to questionID column. But I
don't know how it is best (fastest) to do?
table before
rowID answID qryrow questionID datafield
1591 12 06e 06e 06e question
1593 12 06f 06f 06f question
1594 12 answer to the question 06f
|
by: glenn |
last post by:
I am use to programming in php and the way session and post vars are past
from fields on one page through to the post page automatically where I can
get to their values easily to write to a database or continue to process on
to the next page.
I am now trying to learn ASP to see if we can replace some of our
applications that were written in php with an ASP alternative. However,
after doing many searches on google and reading a couple...
| |
by: Rider |
last post by:
Hi, simple(?) question about asp.net configuration..
I've installed ASP.NET 2.0 QuickStart Sample successfully. But, When I'm
first start application the follow message shown.
=========
Server Error in '/QuickStartv20' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file
|
by: Jeff |
last post by:
In the function below, can size ever be 0 (zero)?
char *clc_strdup(const char * CLC_RESTRICT s)
{
size_t size;
char *p;
clc_assert_not_null(clc_strdup, s);
size = strlen(s) + 1;
|
by: spibou |
last post by:
In the statement "a *= expression" is expression assumed to be
parenthesized ? For example if I write "a *= b+c" is this the same
as "a = a * (b+c)" or "a = a * b+c" ?
|
by: Allan Ebdrup |
last post by:
Hi,
I'm trying to render a Matrix question in my ASP.Net 2.0 page, A matrix
question is a question where you have several options that can all be rated
according to several possible ratings (from less to more for example).
I have a question object that has two properties that contain the
collections Options and Ratings.
now I want this kind of layout:
---
Rating1 Rating2 Rating3
Option 1 () () ...
|
by: Zhang Weiwu |
last post by:
Hello!
I wrote this:
..required-question p:after {
content: "*";
}
Corresponding HTML:
<div class="required-question"><p>Question Text</p><input /></div>
<div class="not-required-question"><p>Question Text</p><input /></div>
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |