private function getCurrDateTimeMilliseconds():String
{
var date:Date = new Date();
var _1:Number = date.getFullYear();
var _2:Number = date.getMonth() + 1;
var _3:Number = date.getDate();
var _4:Number = date.getHours();
var _5:Number = date.getMinutes();
var _6:Number = date.getSeconds();
var _7:Number = date.getMilliseconds();
var _11:String = String( _1 );
var _22:String = ( _2 < 10 ? "0" : "" ) + String( _2 );
var _33:String = ( _3 < 10 ? "0" : "" ) + String( _3 );
var _44:String = ( _4 < 10 ? "0" : "" ) + String( _4 );
var _55:String = ( _5 < 10 ? "0" : "" ) + String( _5 );
var _66:String = ( _6 < 10 ? "0" : "" ) + String( _6 );
var _77:String = ( _7 < 10 ? "00" : ( _7 < 100 ? "0" : "" ) ) + String( _7 );
return _11 + _22 + _33 + _44 + _55 + _66 + _77;
}
'프로그래밍 > FLEX' 카테고리의 다른 글
FLEX 주간 일정관리 등록/끼워넣기 (0) | 2014.03.18 |
---|---|
주차 구하기, FLEX 월별 주차 구하기 (0) | 2014.03.11 |
플렉스(FLEX) 공백, 줄바꿈 (0) | 2013.11.13 |
restrict - TextInput 입력문자 제한 (0) | 2013.11.13 |
FLEX 커서위치값 가져오기.. (0) | 2013.11.08 |
댓글