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 and you can get a source on GitHub at https://github.com/skovalyov/cs-core-lib/blob/master/coffee/date-util.coffee 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! class DateUtil SECOND_IN_MILLISECONDS = 1000 FEW_SECONDS = 5 MINUTE_IN_SECONDS = 60 HOUR_IN_SECONDS = MINUTE_IN_SECONDS * 60 MONTH_NAMES = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] WEEKDAY_NAMES = ...

Daily Email Newsletters

Weekly Email Newsletters

Subscribe to receive the latest design and creative business news, tutorials, and resources delivered to you via email—either daily (below) or weekly, to your computer, tablet, or mobile phone.

IMPORTANT NOTE: The newsletters and subscription confirmation email will be sent from the address briefing@iampariah.com. Please be sure to whitelist that address in your anti-spam filters. Check your Junk Mail or Spam folder if you miss an email prior to whitelisting briefing@iampariah.com.

Privacy and CAN-SPAM Compliance

All Pariah Burke newsletters comply with the U.S. CAN-SPAM Act. The newsletter even uses a third-party ESP to audit and ensure its compliance with CAN-SPAM. And your privacy is assured: your email address and other information will never be sold or given away.