11#ifndef INCGUARD_MGL_CHRONO_DEFS_H_1614107959
12#define INCGUARD_MGL_CHRONO_DEFS_H_1614107959
57 epochTime += inTimeDifference;
60#if defined(MGL_TARGET_WIN32)
62 gmtime_s(&temp, &epochTime);
63 struct tm *time = &temp;
65 struct tm *time = gmtime(&epochTime);
68 year =
static_cast<uint16_t
>(time->tm_year + 1900);
69 month =
static_cast<uint8_t
>(time->tm_mon + 1);
70 day =
static_cast<uint8_t
>(time->tm_mday);
71 hour =
static_cast<uint8_t
>(time->tm_hour);
72 minute =
static_cast<uint8_t
>(time->tm_min);
73 second =
static_cast<uint8_t
>(time->tm_sec);
time_t EpochTime
UNIXエポック時間を表す型
Definition mgl_chrono_defs.h:22
uint64_t TickTime
Tickタイムを表す型
Definition mgl_chrono_defs.h:78
日付と時刻
Definition mgl_chrono_defs.h:27
DateTime(EpochTime epochTime, int32_t inTimeDifference=0) noexcept
エポック時間から初期化
Definition mgl_chrono_defs.h:54
uint8_t day
日
Definition mgl_chrono_defs.h:30
int32_t timeDifference
時差(秒)
Definition mgl_chrono_defs.h:34
uint8_t second
秒
Definition mgl_chrono_defs.h:33
uint16_t year
年
Definition mgl_chrono_defs.h:28
uint8_t hour
時間
Definition mgl_chrono_defs.h:31
uint8_t month
月
Definition mgl_chrono_defs.h:29
constexpr DateTime() noexcept
コンストラクタ
Definition mgl_chrono_defs.h:37
uint8_t minute
分
Definition mgl_chrono_defs.h:32