| 1090 | } |
| 1091 | |
| 1092 | ImPlotTime 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 |
| 1109 | static const char* MONTH_NAMES[] = {"January","February","March","April","May","June","July","August","September","October","November","December"}; |
no test coverage detected