Tools@BasicAware

DateEcho

Purpose

DateEcho echoes (sic!) the current date or time or both to STDOut. As you might know, STDOut can be redirected to a file via the > or >> operator, like MyTool.exe >> file.txt.

Because of this, the results of DateEcho can be either used to display date/time in a command prompt window or insert into/redirected to a file.


Download

Command line application DateEcho


Installation

None. Download the ZIP file, extract the included executable and run it.

Please note: this is a console application. You should run it from a command prompt.


Use case(s)


Syntax

DateEcho /<Date|Time|DateTime|Mask>=<Format>

Parameters: Format (d|dt) Please note that Format is only usefull for dates. It can be omitted for the parameter /t.

Custom format

Examples

DateEcho /d=l
Dienstag, 31. Juli 2012

DateEcho /d=s
31.07.2012

DateEcho /t
19:30:12

DateEcho /dt=s
31.07.2012, 19:30:12

DateEcho /m=backup_yyyy-mm-wd_hh-ms
backup_2017-10-01_16-149


Source code

The PowerBASIC source code is available at Github


Known issues / limitations


Version

26.01.2021

Navigation

Tools

Info

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Germany License .
All contents copyright © 2012-2021 by BasicAware, Knuth Konrad