home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff311.lzh
/
Udate
/
datehelp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-31
|
2KB
|
40 lines
/*-------------------------------------------------------------------------*/
/* program: datehelp */
/* Purpose: display helpscreen for date/udate */
/* Programmer: George Kerber */
/* Written: 07/08/89 */
/*-------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#define WRITTEN "07/08/89 - 12/28/89"
#define VERSION "v1.04"
void main();
void main(argc,argv)
int argc;
char *argv[];
{ /* Opening Brace for Main */
if(argv[1][0] == 'x') {
printf("
a
abbreviated weekday name
A
full weekday name
R
time - hh:mm\n");
printf("
b
abbreviated month name
B
full month name
H
hour - 00 to 23\n");
printf("
d
day of month - 01 to 31
D
date - mm/dd/yy
Z
timezone name*\n");
printf("
S
second - 00 to 59
t
tab character
i
hour - 1 to 12\n");
printf("
x
day of month ext \(st,nd,rd,th\)
n
newline character
I
hour - 01 to 12\n");
printf("
e
day of month - 1 to 31
Y
four digit year
y
two digit year\n");
printf("
m
month of year - 01 to 12
M
minute - 00 to 59
T
time - hh:mm:ss\n");
printf("
q
print a literal quote
j
julian day of year
J
days remaining\n");
printf("
g
greeting + date/time (o + k)
o
greeting (Good...)
k
date/time string\n");
printf("
u
ddd mmm dd hh:mm:ss tzn* yyyy
r
time - hh:mm:ss pp
p
string, AM or PM\n");
printf("
w
day of week - Sunday = 0
W
same as w, Sun = 1
$
default date\n\n");
}
else {
printf("\n NOTE:
datehelp
is called from the date/udate program.\n\n");
}
}