Getting the Hours, Minutes, Seconds, and Milliseconds : Date : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Date »

 

Getting the Hours, Minutes, Seconds, and Milliseconds


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var dThen:Date = new Date (27279275);
        trace(dThen.getHours());  // Displays: 5;
        trace(dThen.getUTCHours());  // Displays: 5 + offset
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» Date