Palindrome dates: Difference between revisions
m
Replaced "UNIX shell" by "UNIX Shell" (to link the example to the existing category page)
m (Replaced "UNIX shell" by "UNIX Shell" (to link the example to the existing category page)) |
|||
Line 1,610:
</pre>
=={{header|UNIX
printf format, rev and date commands are the keys :
<lang shell>is_palyndrom_date() { date -d "$1" 1>/dev/null 2>&1 && echo "$1" ; }
|