ADate is a versatile date and time utility for the Commodore Amiga platform. It allows you to display, convert, and set system date and time with a range of supported formats and features. With epoch handling, custom formats, and support for multiple date standards (ISO 8601, RFC 2822, and more), ADate is designed for developers, system administrators, and Amiga enthusiasts who need precise date-time manipulation.
-
Date and Time Display
- Display the current system date and time.
- Customize output with user-defined formats.
-
Date Parsing
- Parse and display specific dates using various input formats:
- ISO 8601:
YYYY-MM-DDTHH:MM:SS - RFC 2822:
Day, DD Mon YYYY HH:MM:SS +ZZZZ - Custom Formats:
YYYY-MM-DD,DD-MM-YYYY,YYYYMMDD HH:MM - Relative Dates:
yesterday,today,tomorrow
- ISO 8601:
- Parse and display specific dates using various input formats:
-
Epoch Conversion
- Convert between Amiga epoch (
1978-01-01) and Unix epoch (1970-01-01). - Specify epochs directly using
epoch="@<value>"(Amiga) orepoch="<value>"(Unix).
- Convert between Amiga epoch (
-
System Time Setting
- Set the Amiga system time to a specific date and time using the
SEToption.
- Set the Amiga system time to a specific date and time using the
-
Help Option
- Access detailed usage instructions and examples with the
HELPoption.
- Access detailed usage instructions and examples with the
-
Advanced Format Options
- Customize date and time output with specifiers like
%Y,%m,%d,%H,%M,%S, and more.
- Customize date and time output with specifiers like
adate [OPTIONS]| Option | Description |
|---|---|
UTC |
Display time in UTC. |
FORMAT/K |
Custom output format (e.g., %Y-%m-%d %H:%M:%S). |
DATE/K |
Specify a date to parse and display. Supports multiple formats. |
TIME/K |
Specify time (used with DATE). |
SET/S |
Set the system date/time to the provided value. |
EPOCH/K |
Specify epoch time. Use @<value> for Amiga epoch or <value> for Unix. |
HELP/S |
Display usage instructions and examples. |
Use the FORMAT option to customize the output. Supported specifiers include:
| Specifier | Description |
|---|---|
%Y |
Year (4 digits) |
%y |
Year (2 digits) |
%m |
Month (01–12) |
%d |
Day of the month (01–31) |
%H |
Hour (00–23) |
%M |
Minute (00–59) |
%S |
Second (00–59) |
%a |
Abbreviated weekday name |
%A |
Full weekday name |
%j |
Day of the year (001–366) |
%U |
Week number (Sunday start) |
%W |
Week number (Monday start) |
%p |
AM/PM |
%z |
Timezone offset |
%Z |
Timezone name |
adateadate utcadate format="%Y-%m-%d %H:%M:%S"adate date="2024-12-10T14:23:45"
adate date="Tue, 10 Dec 2024 14:23:45 +0100"
adate date="12-12-2012"adate epoch="@123456"
adate epoch="1672531199"adate date="2024-12-10T14:23:45" setadate help- Compile the program using your preferred Amiga C compiler.
- Place the binary in a directory included in your
PATH(e.g.,C:).
Contributions are welcome! Feel free to submit issues, feature requests, or pull requests on the GitHub repository.
This project is licensed under the MIT License.