Files
UnrealEngineUWP/Engine/Source/Developer/Windows/LiveCodingServer/Private/External/LC_TimeDate.h
Chris Gagnon d7d4ee7b38 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor) at CL 7473521
#rb none
#fyi Max.Chen, Tim.Gautier

[CL 7614721 by Chris Gagnon in Dev-Editor branch]
2019-07-24 15:05:52 -04:00

35 lines
1.1 KiB
C++

// Copyright 2011-2019 Molecular Matters GmbH, all rights reserved.
#pragma once
class TimeDate
{
public:
// A type representing the time format: extended ISO (ISO 8601) hh:mm:ss,mmmm plus a null terminator.
typedef char TimeDescription[14];
// A type representing the date format: ISO (ISO 8601) YYYY-MM-DD plus a null terminator.
typedef char DateDescription[11];
TimeDate(unsigned short year, unsigned char month, unsigned char day, unsigned char hour, unsigned char minute, unsigned char second, unsigned short milliSecond);
// Returns the current time and date in local time.
static TimeDate GetCurrent(void);
// Converts the time into the extended ISO 8601 format, and returns a pointer to the description string.
const char* ToTimeString(TimeDescription& desc) const;
// Converts the date into the standard ISO 8601 format, and returns a pointer to the description string.
const char* ToDateString(DateDescription& desc) const;
private:
unsigned short m_year;
unsigned char m_month;
unsigned char m_day;
unsigned char m_hour;
unsigned char m_minute;
unsigned char m_second;
unsigned short m_milliSecond;
};