Files
UnrealEngineUWP/Engine/Source/Programs/PixelStreaming/SessionMonitor/src/TimeUtils.h
Ryan Durand 9ef3748747 Updating copyrights for Engine Programs.
#rnx
#rb none
#jira none

#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869242 in //Fortnite/Release-12.00/... via CL 10869536
#ROBOMERGE-BOT: FORTNITE (Main -> Dev-EngineMerge) (v613-10869866)

[CL 10870955 by Ryan Durand in Main branch]
2019-12-26 23:01:54 -05:00

52 lines
839 B
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "SessionMonitorCommon.h"
struct FDateTime
{
FDateTime(int Year, int Month, int Day, int Hour, int Minute, int Second, int Milliseconds)
: Year(Year)
, Month(Month)
, Day(Day)
, Hour(Hour)
, Minute(Minute)
, Second(Second)
, MSec(Milliseconds)
{
}
// Full year (e.g: 2018)
int Year;
// 1..12
int Month;
// Day of the month (e.g: 1..31)
int Day;
// (0..23)
int Hour;
// (0..59)
int Minute;
// (0..59)
int Second;
// Milliseconds (0..999)
int MSec;
/**
Formats in a way ready for logging, matching UE4 format
YYYY.MM.DD-HH.MM.SS:MSEC
*/
const char* ToString(bool bIncludeMSec=true);
};
/**
* Returns the local date/time
*/
FDateTime Now();
/**
* Returns current UTC date/time
*/
FDateTime UtcNow();