The Adobe docs point to a function called dateDiff, I cant however see any examples or reference as to what开发者_StackOverflow社区 I should be importing to make this function work.
The implementation can be found in com.adobe.fiber.runtime.lib.DateTimeFunc
So it should work like this:
import com.adobe.fiber.runtime.lib.DateTimeFunc;
But this package seems not to be a part of the standard Flex SDK, so you better should try FlexDateUtils.
If you need the code: http://flexed.wordpress.com/2006/06/26/date-difference/
精彩评论