flash.utils.Proxy の習作として、以前書いた Date クラスの拡張を ActionScript 3.0 で書いてみた。
var d:SmartDate = new SmartDate(); trace(d); //Mon Sep 1 13:58:51 GMT+0900 2008 trace(d.yesterday()); //Sun Aug 31 13:58:51 GMT+0900 2008 trace(d.endOfMonth().tomorrow()); //Wed Oct 1 13:58:51 GMT+0900 2008