Showing posts with label Facebook. Show all posts
Showing posts with label Facebook. Show all posts

June 2, 2012

CoffeeScript version of the time span formatter between now and the date specified in a "Facebook way"

Earlier I published an ActionScript utility method that allows you to format the time span between now and the date specified in a "Facebook way".

Now I port it to CoffeeScript.

You can notice that the code is very similar, but thanks to CoffeeScript native string interpolation it is shorter and easier to read and understand!

You are welcome to contribute at https://github.com/skovalyov/time-format!

September 22, 2010

How to format the time span between now and the date specified in a "Facebook way"

Recently I was looking for some method to format the time span between now and the date specified in a "Facebook way". There are some, but none was completely what I was looking for. So I have decided to create mine. Moreover, it's not that complicated: