//Capture the current time stamp and format it to YYYY-MM-DD HH:MM:SS.mmm.
FDateTime CurrentDateAndTime = FDateTime::UtcNow();
//Capture the time stamp.
FString FormattedTimeStamp = FString::Printf(TEXT("%04i-%02i-%02i %02i:%02i:%02i.%03i"), CurrentDateAndTime.GetYear(), CurrentDateAndTime.GetMonth(), CurrentDateAndTime.GetDay(), CurrentDateAndTime.GetHour(), CurrentDateAndTime.GetMinute(), CurrentDateAndTime.GetSecond(), CurrentDateAndTime.GetMillisecond());
UE4中的FDateTime
最新推荐文章于 2024-08-12 16:24:45 发布