include #include <stdio.h>void main(void){time_t timep;struct tm *p;int in_time[3];intnow_time[3];int i;printf("输入年-月-日: ");scanf("%d-%d-%d", &in_time[0], &in_time[1], &in_time[2]);time (&timep);p=gmtime(&timep);now_time[0]=1900+p->tm_year;...
public void CompanyDate(string dateStr1, string dateStr2,ref string msg) { //将日期字符串转换为日期对象 DateTime t1 = Convert.ToDateTime(dateStr1); DateTime t2 = Convert.ToDateTime(dateStr2); //通过DateTIme.Compare()进行比较() int compNum = DateTime.Compare(t1, t2); //t1> t2 if (...
public void CompanyDate(string dateStr1, string dateStr2,ref string msg) { //将日期字符串转换为日期对象 DateTime t1 = Convert.ToDateTime(dateStr1); DateTime t2 = Convert.ToDateTime(dateStr2); //通过DateTIme.Compare()进行比较() int compNum = DateTime.Compare(t1, t2); //t1> t2 if (...