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 *
Vendor benchmark finds APIs let you do the job faster and cheaper
Securities regulator urges market players to develop new strategies and nail cyber-basics before AI models fuel mass attacks
If the numbers are large enough, perhaps we won't question the math
High-speed connectivity without NVLink baggage
Always bet on backpropagation
With help from Google and Intel, Big Blue brings new automation to Db2
ServiceNow acquisitions Veza and Traceloop join to monitor agents and AI workflows