AminetAminet
Search:
84494 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/cli/getdate.lha

Mirror:Random
Showing:m68k-amigaosppc-amigaosppc-morphosi386-arosi386-amithlonppc-warpupppc-powerupgeneric
No screenshot available
Short:Prints "big-endian" date
Author:Matthias.Bethke at gmx.net
Uploader:Matthias Bethke gmx net
Type:util/cli
Architecture:m68k-amigaos
Date:1999-07-12
Download:http://aminet.net/util/cli/getdate.lha - View contents
Readme:http://aminet.net/util/cli/getdate.readme
Downloads:629

This is a tiny tool that just prints a "big-endian" (year first to simplify
sorting) date/time string. It is meant for use in scripts, particularily
those called as cron jobs.
"getdate" without an argument prints the date as yyyymmdd, giving the
"Time" argument makes it (tadaaa!) print date and time as yyyymmddhhMMss.
Example:
	mv YAM.log YAM_`getdate`.log

Status: Public Domain
Source: included


Contents of util/cli/getdate.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  325     523  62.1% -lh5- 0e79 Jul 11  1999 getdate.readme
[generic]                  396     552  71.7% -lh5- 7d69 Jul 11  1999 getdate/getdate
[generic]                  626    1368  45.8% -lh5- bab3 Jul 11  1999 getdate/getdate.c
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         3 files    1347    2443  55.1%            Jul 12  1999

Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>