fork download
  1. # formatted dates
  2.  
  3. function today(fmt, year, month, day, date, str) {
  4. if (0 < year + 0 && year + 0 < 10000 &&
  5. 0 < month + 0 && month + 0 <= 12 &&
  6. 0 < day + 0 && day + 0 <= 31) {
  7. str = "-d \"" month "/" day "/" year "\"" }
  8. "date +\"" fmt "\" " str | getline date
  9. return date }
Success #stdin #stdout 0s 4276KB
stdin
Standard input is empty
stdout
Standard output is empty