LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 03-27-2003, 07:07 PM
dv8's Avatar
dv8 dv8 is offline

Admin Mod
 
Join Date: Mar 2001
Posts: 2,053
Rep Power: 15
dv8 is on a distinguished road
Cyborg EPOCH Time: PHP vs. Flash

I've been working on a Chat Program with Flash MX and PHP Flash Remoting. So far it's a great venture and a lot of fun.

Now in my original PHP script I was sending timestamps to a database for the last evaluated time the user was "seen"
PHP Code:

// Example of EPOCH Time Stamp from PHP

// Date of this Post March 27, 2003
echo (time()); // Returns 1048792954 
Then I began rolling over the timestamp to Flash
Actionscript:
// Example of EPOCH Time Stamp from Flash MX
// Date of this Post March 27, 2003
trace(new Date().getTime()); //Output 1048792661937

Now, I'm wondering why there is a difference...
<Flash MX EPOCH = 1048792661937 />
<PHP EPOCH = 1048792954 />
This isn't slowing my progress with the Chat Program, but I just made this as an observation. I was sure both Flash MX and PHP returned milliseconds from January 1, 1970 to now.
Why such a difference? I'm going to figure out the offset.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Flash Builder 4.6 is now available for download FlashMove Flash Builder 0 12-05-2011 01:35 AM
php and flash issue. Arthur005 Flash MX 2004 4 10-20-2005 05:26 AM
Passing Flash variables to PHP - HELP!! Clayanimated Flash Media Server 1 07-11-2005 12:04 PM
Interesting PHP to Flash Variable Problem spiter Flash MX 2004 13 07-06-2005 03:40 PM
php to flash laukis Flash MX 2004 2 02-07-2004 05:57 PM




All times are GMT. The time now is 01:57 PM.