4 Replies Latest reply on Apr 12, 2007 10:19 AM by TroyK

    UTC time

    TroyK
      Can anyone tell me how I can get seconds since Midnight Jan 1 1970 in flash? Just like PHP does with
      $_SERVER["REQUEST_TIME"]
      which looks like 1176394301

      I've tried this with no luck.

      pDate = new Date();
      year = (pDate.getYear()-70)*31556926
      m = pDate.getMonth()*2629743.83
      d = pDate.getDate()*86400
      h = pDate.getHours()*3600;
      min = pDate.getMinutes()*60;
      s = pDate.getSeconds()
      trace(year+m+d+h+min+s);