UE4 c++获取RFC 1123有效时间(UTC+0时区)
/*RFC 1123有效时间 "Wed, 10 Jul 2019 07:35:43 GMT"*/
FString mouths[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep","Oct", "Nov", "Dec" };
FString weekdays[] = { "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" };
FString date = FString::Printf(TEXT("%s, %02i %s %i %s GMT"),
*weekdays[static_cast<int32>(FDateTime::UtcNow().GetDayOfWeek())],
FDateTime::UtcNow().GetDay(),
*mouths[FDateTime::UtcNow().GetMonth() - 1],
FDateTime::UtcNow().GetYear(),
*FDateTime::UtcNow().ToString(TEXT("%H:%M:%S")));