How can demonstrated their age to another friend, this is simple, if you use MS Excel you can calculate the right amount of time that you went through, you can also find a web site that calculates age by clicking on the sample form, but I find a way to personal the ActionScript is adapted from JavaScript.
Usage:
var date:DateUtilities = new DateUtilities();
var currentTime:Number = Date.UTC(2011, 11, 05, 12, 12, 12, 12);
var birthDate:Number = Date.UTC(1985, 01, 01, 06, 30, 12, 12);
var old:String = date.qryHowOld(currentTime, birthDate);
//result: 26 years 9 months 2 weeks 3 days 5 hours
I try to create examples to avoid falling into oblivion, at least I am using this code, welcome everybody :)
Demo:
Source:
DateUtilities.as
Dater.as
0 comments:
Post a Comment