Time Ago Farsi A better way to display relative dates from now using a few line of JavaScript. This function will return strings like "۳ روز پیش" or "۵ روز پیش". Usage timeAgoFarsi(startDate); // var startDate = 1491277652; License Licensed under the MIT license.