Skip to content

Instantly share code, notes, and snippets.

@trey
Last active August 30, 2015 11:54
Show Gist options
  • Save trey/134815 to your computer and use it in GitHub Desktop.
Save trey/134815 to your computer and use it in GitHub Desktop.
Display the current year in PHP, Django, and Rails.
<!-- PHP -->
<?php echo date('Y'); ?>
<!-- Django -->
{% now "Y" %}
<!-- Rails -->
<%= Date.today.year %>
@trey
Copy link
Author

trey commented Mar 31, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment