[ActionScript 3.0] AS3 时间日期格式化DateTimeFormatter类的运用
2016-01-18 13:17
435 查看
import flash.globalization.DateTimeFormatter; var _timeFormatter:DateTimeFormatter; var _dateFormatter:DateTimeFormatter; _dateFormatter = new DateTimeFormatter(LocaleID.DEFAULT,DateTimeStyle.SHORT,DateTimeStyle.NONE); _timeFormatter = new DateTimeFormatter(LocaleID.DEFAULT, DateTimeStyle.NONE, DateTimeStyle.SHORT); var date:Date = new Date(); _timeFormatter.setDateTimePattern("mm′ss″"); _dateFormatter.setDateTimePattern("MM月dd日"); trace(_timeFormatter.format(date)); //06′17″ trace(_dateFormatter.format(date)); //01月18日
相关文章推荐
- hnoi2013游走 (高斯消元)
- 可视化编程 XIB
- 多个SDCycleScrollView轮播图加载网络图片减少内存使用.
- 4、动态MBean:DynamicMBean
- 【数据表格】-003-分页实现
- 各国APN运营商设置 上网和MMS
- 手把手教你写Com(Step by Step COM Tutorial)
- struts2--view层异常处理
- .Net中EF针对大数据量查询超时的一种优化
- ios基本控件之NSAtttibuateString
- 【有源汇点上下界最大流】[ZOJ3229]Shoot the Bullet
- 现在流行什么 JS库/框架?
- nyroModal:强大的jQuery弹出层插件
- django setting设置路径
- 在Android中使用HttpClient 4.3.x出现NoSuchFieldError的问题
- Android平台Camera实时滤镜实现方法探讨(十一)--实时美颜滤镜
- 当前最全的TAdvStringGrid控件属性事件介绍和使用方法(AdvStringGrid使用技巧/Cells)
- DataTables 控件使用和心得 (2) - 参数Options中文说明
- Android面试题大全之一
- XStream