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

util/time/adate.lha

Mirror:Random
Showing: m68k-amigaos icongeneric icon
No screenshot available
Short:Versatile date and time utility for Amiga
Author: boingball at gmail.com (D Banfi)
Type:util/time
Version:1.0
Architecture:m68k-amigaos
Distribution:Aminet
Date:2024-12-11
Download:/util/time/adate.lha - View contents
Readme:/util/time/adate.readme
Downloads:25

ADate is a powerful date and time CLI utility for the Amiga platform.
It supports advanced date parsing, epoch handling, and customizable formats.
With ADate, you can display, convert, 
and set the system date and time effortlessly.
Formatting from the Unix date command

Compiled for 68000 and tested on AmigaOS 3.2.2.1

Main Features:
- **Date and Time Display**: Show the current system date and time.
- **Custom Formatting**: Use flexible format specifiers like %%Y, %%m, %%d.
- **Date Parsing**: Supports ISO 8601, RFC 2822, and custom formats.
- **Epoch Handling**: Convert Amiga epoch (1978) and Unix epoch (1970).
- **System Time Setting**: Set the system date and time with ease.
- **Help Option**: Access detailed usage instructions.

Usage Examples:
- Display current date and time: `adate`
- Custom format: `adate format="%%Y-%%m-%%d %%H:%%M:%%S"`
- Parse specific date: `adate date="2024-12-10T14:23:45"`
- Use Amiga epoch: `adate epoch="@1234567890"`
- Use Unix epoch: `adate date="@1234567890"`
- Set system date and time: `adate date="2024-12-10T14:23:45" set`
- Show help: `adate help`

Limitations:
Dates before Amiga Epoch do not work (1978-1-1)

Installation:
Place the binary in a directory included in your `PATH`.

Code available on my GitHub
https://github.com/boingball/adate
This utility is released under the MIT License
and contributions are welcome.


Contents of util/time/adate.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  813    1594  51.0% -lh6- 71d9 Dec 10 23:02 adate.readme
[generic]                93065  163096  57.1% -lh6- 8429 Dec 10 22:21 adate
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         2 files   93878  164690  57.0%            Dec 11 22:56
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>