Short: Date formatter, for ANY date Author: Chris F.A. Johnson Uploader: bq933 torfree net (Chris Johnson) Type: cli/util Requires: Should work on any Amiga Architecture: m68k-amigaos Date: 1998/04/04 Similar to the Unix "date" command, fdate can display the current date in any format. Unlike the Unix "date" can display a date other than the current date. You may also have it display the date of a file. OPTIONS: -? Print program information The following options alter the date that will be displayed (NOTE: These do not set the system date or time) -d n Day -m n Month -M n Minute -y n Year (0-199 - relative to 1900) -Y n Year (19nn) -s n Second -h n Hour -f file Use date of 'file' -E Easter -j n Julian_Date -o n (Offset by n days) -F First day of month -L Last day of month e.g. > fdate -m 12 -d 25 -Y 1996 -h 12 -M 33 -s 0 Wednesday 25 December 1996 12:33:00 pm > fdate -E -Y 1998 Sunday 12 April 1998 08:13:23 pm > fdate -f fdate Saturday 04 April 1998 08:07:36 pm FORMAT STRING (enclose in quotes if string contains spaces): %a - Abbreviated name for the day of week %A - Full name for the day of week %b - Abbreviated name for the month %B - Full name for the month %c - Default representation for the date & time %d - Day of the month 01-31 %H - Hour 00-23 (24 hour time) %I - Hour 01-12 (12 hour time) %i - International date: YYYY/MM/DD %j - Day in the year 001-366 %J - Julian date (including time as fraction of the day) %L - Lotus 1-2-3 date (including time as fraction of the day) %m - Month 01-12 %M - Minute 00-59 %S - Second 00-59 %p - Indication of morning or afternoon: am or pm %P - Indication of morning or afternoon: AM or PM %U - Week of the year 00-53, Sunday is the first day in a week %w - Day of the week 0-6, Sunday=0 %W - Day of the week 0-6, Monday=0 %x - Default representation for the date only %X - Default representation for the time only %y - Year modulo 100 (00-99) %Y - Full year (e.g. 1990) %%,\% - a literal '%' character \n,\t - Newline, tab; any other character after \ is itself e.g. > fdate "%i\t%J" 1998/04/04 2450907.84979166409 > fdate "%d-%B-%Y" 04-April-1998