Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
203 B

  1. #!/bin/sh
  2. # Date format - see date(1):
  3. FMT='+%A, %B %e, %Y'
  4. # If given a date, use that one. Otherwise default to actual today.
  5. if [ ! -z "$1" ]; then
  6. date --date "$1" "$FMT"
  7. else
  8. date "$FMT"
  9. fi