Home > Back-end > Everyone who taught me, genuflect is begged just learning, not really!!
Everyone who taught me, genuflect is begged just learning, not really!!
Time:09-17
, I see this I received, suffocation to no, how do I answer, in years, appears to be simple, but in the eyes of students with poor grades to proposition is! C + + solutions, thanks for your bosses! _ () _)) _
CodePudding user response:
Has the certain difficulty,,,,,,,
CodePudding user response:
1. The TDateTime DateTime=Time (); AnsiString today=TimeToString (DateTime);//output 9:20:50
2. The AnsiString today=TimeToString (Now ());//output 9:20:50
3. The AnsiString today=FormatDateTime (" MM - dd yyyy - HH: MM: ss ", Now ()); //FormatDateTime output format () function can be set a time //http://www.docin.com/p-1825776224.html
4. The AnsiString today=YearOf (Now ());//get the current year, the output 2019 AnsiString today=MonthOf (Now ());//get the current month, output 2 AnsiString today=DayOf (Now ());//get the current, output 28 AnsiString today=HourOf (Now ());//get the current hour, output 9 AnsiString today=MinuteOf (Now ());//get the current year, the output of 20 AnsiString today=SecondOf (Now ());//get the current year, the output of 50