DOFF

Prints a formatted date and time, with an optional date offset
Download

DOFF Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • John Fitzgibbon
  • Operating Systems:
  • Windows All
  • File Size:
  • 14 KB

DOFF Tags


DOFF Description

The DOFF application was designed to be a small command line tool that prints a formatted date and time, with an optional date offset, (e.g -1 prints yesterday's date, +1 prints tomorrow's date). To view all the options available, execute "doff -h". I typically use this utility for renaming log files so that they include a timestamp, (see the third example below). Sample commands: C:>doff 19991108131135 With no parameters the output is the current date/time in the following format: yyyymmddhhmiss C:>doff mm/dd/yyyy 11/08/1999 In the above example a date format specification is given. @echo off for /f "tokens=1-3 delims=/ " %%a in ('doff mm/dd/yyyy -1') do ( set mm=%%a set dd=%%b set yyyy=%%c) rename httpd-access.log httpd-access-%yyyy%%mm%


DOFF Related Software