Monday, April 12, 2010

distance_of_time_in_words on AS3

Every RoR developer familiar with function distance_of_time_in_words, name of this function is self-explaining. I've been looking for similar function in AS3 world, I found few pieces of code on StackOverflow, but it was not what I needed. Eventually I've ported it on AS3 by myself. This function is already in use on twits info window.

Update: On Stack Overflow I found very useful class called TimeSpan. I just added my function to this class. Check it out.


  1. Cool function, I appreciate your effort.

    Will you release the source code someday?

  2. I appreciate your interest in my blog.
    Yes, of course, I will release it very soon, just wanna clean out code after debugging.