Skip to content

Instantly share code, notes, and snippets.

@martijngastkemper
Last active August 29, 2015 14:18
Show Gist options
  • Save martijngastkemper/467cc9c35b5fbd51b470 to your computer and use it in GitHub Desktop.
Save martijngastkemper/467cc9c35b5fbd51b470 to your computer and use it in GitHub Desktop.
Smarty timestamp example
Default date format: {$date|date_format}
Timestamp: {$date|date_format:"%s"}
{if $date|date_format:"%s" < $smarty.now}
True
{else}
False
{/if}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment