{{site.current_user.last_sign_in_at}}
{% assign dateLastSignIn = site.current_user.last_sign_in_at | date: '%s' %}
{{site.current_user.last_sign_in_at | date: '%s' }}
{% assign nowTimestamp = 'now' | date: '%s' %}
{{'now' | date: '%s' }}
{% comment %} difference in seconds {% endcomment %}
{% assign diffSeconds = nowTimestamp | minus: dateLastSignIn %}
{% comment %} difference in days {% endcomment %}
{% assign diffDays = diffSeconds | divided_by: 3600 | divided_by: 24 %}
Diff: {{ diffDays }}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.