Getting the Time Zone Offset : Date : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » Date »

 

Getting the Time Zone Offset


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var dNow:Date = new Date();
        trace("Your time zone offset: " + dNow.getTimezoneOffset() " minutes");


    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Development
» Date