在sco unix 下显示前n天或后n天日期的处理程序。 printf("功能: 时间戳与时间格式字符串的转换程序\n") printf(" -i 输入的参数为时间戳\n") printf(" -s 输入的参数为格式化时间\n") printf(" -t 输入的时间取当前系统时间\n") printf(" -x 输入的时间增加或减少的天数\n") printf(" -o 输出的时间为时间戳格式\n") printf(" -O 输出的时间为格式化时间\n") printf(" -h 帮助文件-查看[format]如何定义,例 %s -h\n",procname) printf("范例:1 取当前日期的前2天的时间显示 %s -t -x -2\n",procname) printf(" 2 取20030101的前5天的时间显示 %s -s 20030101000000 -x -5\n",procname) printf(" 3 取20031231的后5天的时间显示 %s -s 20031231000000 -x 5 -O \"%%D %%T\"\n",procname) printf(" 4 取时间戳为1089619417的时间显示 %s -i 1089619417 \n",procname) printf(" 5 取时间戳为1089619417的后4天的时间显示 %s -i 1089619417 -x 4 \n",procname)