Mega Code Archive

 
Categories / Flash ActionScript / Development
 

UTC() is a method that returns the time value in milliseconds from midnight on January 1, 1970

package{   import flash.display.Sprite;      public class Main extends Sprite{     public function Main(){        // The UTC() method takes the same arguments as the Date constructor: year, month, date, hour, minutes, seconds, milliseconds.          var nUTCDate:Number = Date.UTC(1970, 0, 1, 0, 0, 0);                  var nUTCDate:Number = Date.UTC(1970, 0, 1);     }   } }