Skip to content

Instantly share code, notes, and snippets.

@trey
Last active August 30, 2015 11:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • 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 20, 2014

This is a Solutions Log post.

@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