Prints a formatted date and time, with an optional date offset
| Version | 3.56.2.1 |
| Updated | April 2 2020 |
| Developer |
John Fitzgibbon
N/A
N/A
|
| User Rating |
1030
3.7
|
| Original File Size | 16.3 MB |
| Downloads | 8559 |
| Systems | Windows All |
| Category | System |
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%Э%.log
The sample batch file above shows a neat way to rename a log file based on yesterday's date. The "for" command executes doff to print yesterday's date, (the "-1" parameter specifies yesterday), then extracts each component of the date into DOS batch file variables. The "rename" command renames "httpd-access.log" to "httpd-access-[yesterday's date].log"
Baie dankie vir die keygen
keygen के लिए DOFF के लिए धन्यवाद
grazie
Your email will not be published. Required fields are marked as *
Revenue growth is sluggish, too
AMD researchers argue that, while algorithms like the Ozaki scheme merit investigation, they're still not ready for prime time.
'OpenSlopware' briefly flowers, fades, falls - but fortunately was forked, fast
Gotta pay for those datacenter buildouts somehow
Does that kind of time saving actually pay for itself?
Microsoft claims it's a Secure Launch bug
Newer kernel, newer Cinnamon, new tools, and even new icons