forked from: 1桁の月や日を0Xの形に
forked from 1桁の月や日を0Xの形に (diff: 9)
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 +
'';
}
}
}