MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / CombineDateTime

Function CombineDateTime

Source/3rdParty/implot/implot.cpp:1092–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1090}
1091
1092ImPlotTime CombineDateTime(const ImPlotTime& date_part, const ImPlotTime& tod_part) {
1093 ImPlotContext& gp = *GImPlot;
1094 tm& Tm = gp.Tm;
1095 GetTime(date_part, &gp.Tm);
1096 int y = Tm.tm_year;
1097 int m = Tm.tm_mon;
1098 int d = Tm.tm_mday;
1099 GetTime(tod_part, &gp.Tm);
1100 Tm.tm_year = y;
1101 Tm.tm_mon = m;
1102 Tm.tm_mday = d;
1103 ImPlotTime t = MkTime(&Tm);
1104 t.Us = tod_part.Us;
1105 return t;
1106}
1107
1108// TODO: allow users to define these
1109static const char* MONTH_NAMES[] = {"January","February","March","April","May","June","July","August","September","October","November","December"};

Callers 1

ShowAxisContextMenuFunction · 0.85

Calls 2

MkTimeFunction · 0.85
GetTimeFunction · 0.70

Tested by

no test coverage detected