Last active
August 30, 2015 11:54
-
-
Save trey/134815 to your computer and use it in GitHub Desktop.
Display the current year in PHP, Django, and Rails.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- PHP --> | |
<?php echo date('Y'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Django --> | |
{% now "Y" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Rails --> | |
<%= Date.today.year %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://twitter.com/trey/status/2022308154