forked from: 1桁の月や日を0Xの形に

by wh0 forked from 1桁の月や日を0Xの形に (diff: 9)
♥0 | Line 14 | Modified 2011-02-12 07:25:08 | MIT License
play

ActionScript3 source code

/**
 * Copyright wh0 ( http://wonderfl.net/user/wh0 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/e1pH
 */

// forked from zahir's 1桁の月や日を0Xの形に
package {
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            var d:Date = new Date();
            (addChild( new TextField() ) as TextField).text =
                d.fullYear * 10000 +
                (d.month + 1) * 100 +
                d.date +
                '';
        }
    }
}