O'Reilly logo
  • Mark Taylor thinks this is interesting:

<p>The local date and time is {{ moment(current_time).format('LLL') }}.</p> <p>That was {{ moment(current_time).fromNow(refresh=True) }}</p>

From

Cover of Flask Web Development, 2nd Edition

Note

The moment.js script was added in the base.html template
so index.html needs to extend base