Hi there !
I wish to display in my Flash File (don't worry about Flash, I know how to handle PHP results and send them to Flash !) which is read all throughout the world, the Full Date and Time of my Home.
My Server is in California, I am living in Quebec (three hours of difference) and my File could be read by friends in Japan or Indi or South Africa.
Displaying the Date and Time of my Home will say to my friends, for example : "Don't phone me, I'm sleeping" !!! He he he...
I thank you very much in advance for any advice, link, or active help !!!
Full Date and Time of a given localization
Moderator: General Moderators
Hi there,
that sounds like a case for time arithmetics. You can use the PHP function for that, which returns the number of seconds since the "Unix epoch", and add +/- 10,800 to it (depending on if Quebec's time is 3 hours behind or advanced to California's).
The result can be put into the function to create a nicely formatted date-time string.
that sounds like a case for time arithmetics. You can use the PHP function
Code: Select all
time()The result can be put into the
Code: Select all
date()