PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
have a look at the time(), mktime(), date(), gmdate() and related functions in the manual
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
The admin will put a future date and time as event date. It will be in one of the format from PST, EST etc... depending on where the event occurs. I have to display the counter.
taking into account of daylight time how to calculate number of seconds
superdezign,
I am thinking of getting gmt time and then subtracting appropriate number of hours (for EST -5, CST - 6 ect..). But, how to handle daylight savings.
Get the current timezone (date_default_timezone_get), try setting the time zone to what you want using the date_default_timezone_set function to retrieve the correct time in that time-zone and then reste the timezone to what it was. I haven't tested this but in theory I think it should work.