![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
King of Portal
|
Will this snippet of code ignore daylight savings time and give me the ACTUAL time in the format I want?
echo date("YmdHis", time());
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#2 |
|
Programmer
|
Yes, It always returns the current server time and I think you are only using one server. So on the current server time stamp will always be unique until unless you have more then one servers and distributed database setup in different regions.
__________________
Iftikhar Ahmed Khan For doing an experiment on programmer's mood please visit http://uxisfyp1.brunel.ac.uk/cspgiak |
|
|
|
|
|
#3 |
|
King of Portal
|
Yes the stamp will be unique 'cause it's only one server. However, if that server is affected by daylight savings time, then it's possible that within certain periods of the year (i.e. when you set the clock back one hour or forward one hour) that I will have overlapping timestamps. No worries though I just modified the code to indicate that difference so as to indicate that it's a DST time stamp or not a DST time stamp. That fix works just as good as I want it to.
// echo date("YmdHisI");
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| way to make a function execute at time 'x' | badbasser98 | C++ | 10 | Apr 5th, 2006 8:14 AM |
| checking file existing time to time, in the same time program do other operation | myName | C++ | 3 | Mar 13th, 2006 9:39 PM |
| Time | ChronicCode | Java | 2 | Aug 11th, 2005 3:22 PM |
| Error messages - time program | splitterdevildoll | C++ | 3 | Aug 7th, 2005 8:15 PM |
| C# Pilot Program | Haz | Existing Project Development | 9 | May 2nd, 2005 10:27 AM |