9 byte Month, Day, WeekDay, Hour, Min;
14 Hour =
HOUR (DateTime);
16 TAP_ExtractMjd(Mjd, &Year, &Month, &Day, &WeekDay);
25 switch(TimeStampFormat)
27 case TIMESTAMP_HM : TAP_SPrint(Result,
"%02d:%02d", Hour, Min);
break;
28 case TIMESTAMP_HMS : TAP_SPrint(Result,
"%02d:%02d:%02d", Hour, Min, Sec);
break;
29 case TIMESTAMP_YMD : TAP_SPrint(Result,
"%02d-%02d-%02d", Year, Month, Day);
break;
30 case TIMESTAMP_YMDHM : TAP_SPrint(Result,
"%04d-%02d-%02d %02d:%02d", Year, Month, Day, Hour, Min);
break;
31 case TIMESTAMP_YMDHMS : TAP_SPrint(Result,
"%04d-%02d-%02d %02d:%02d:%02d", Year, Month, Day, Hour, Min, Sec);
break;
32 case TIMESTAMP_FNYMDHM: TAP_SPrint(Result,
"%04d%02d%02d_%02d%02d", Year, Month, Day, Hour, Min);
break;
33 default : Result[0] =
'\0';
break;