Great to hear from you @MOSF !
YES ![]()
I have changed to using int64,
though dolphins may still come to rule world, ![]()
int64 BP datatype is already here… ![]()
/* Blueprints does not support int64 so at some pt in future int32 will not be enough, probably by then dolphins will rule the world, or UE4 BP will support int64, or both! <3*/
UFUNCTION(BlueprintPure, Category = "Victory BP Library|System")
static int64 GetUnixTimeStamp(const FDateTime& UTCTime)
{
//Please note it should really be int64 but that is not supported by BP yet
return UTCTime.ToUnixTimestamp();
}
/* Blueprints does not support int64 so at some pt in future int32 will not be enough, probably by then dolphins will rule the world, or UE4 BP will support int64, or both! <3*/
UFUNCTION(BlueprintPure, Category = "Victory BP Library|System")
static void GetUTCFromUnixTimeStamp(int64 UnixTimeStamp, FDateTime& UTCTime)
{
//Please note it should really be int64 but that is not supported by BP yet
UTCTime = FDateTime::FromUnixTimestamp( UnixTimeStamp );
}
![]()
PS: 4.27 link in Original Post updated!