#!/bin/sh if [ -z "$1" ]; then echo $(date "+%A, %B %e, %Y, %l:%M:%S%p %Z") else echo $(date "+%A, %B %e, %Y, %l:%M:%S%p %Z" -d "$*") fi