Note: This function has been deprecated in 2.7.0. Consider instead.


    Sometimes, server clocks are not quite in sync with client clocks. This ends up displaying humanized strings such as "in a few seconds" rather than "a few seconds ago". You can prevent that with moment#max():

    You can pass anything to moment#max that you would pass to moment().