trey (owner)

Revisions

gist: 134815 Download_button fork
public
Description:
Display the current year in PHP, Django, and Rails. (http://twitter.com/trey/status/2022308154)
Public Clone URL: git://gist.github.com/134815.git
HTML+PHP
1
2
3
<!-- PHP -->
 
<?php echo date('Y'); ?>
HTML
1
2
3
<!-- Django -->
 
{% now 'Y' %}
RHTML
1
2
3
<!-- Rails -->
 
<%= Date.today.year %>