Get the time in hours, minutes, seconds, and centiseconds as a table. @function Time:GetTimeUnits @treturn table A table in the format {HH, MM, SS, CC}.
| 91 | // @function Time:GetTimeUnits |
| 92 | // @treturn table A table in the format {HH, MM, SS, CC}. |
| 93 | sol::table Time::GetTimeUnits(sol::this_state state) const |
| 94 | { |
| 95 | auto hmsc = GetHmsc(); |
| 96 | auto table = sol::state_view(state).create_table(); |
| 97 | |
| 98 | table.add(hmsc.Hours); |
| 99 | table.add(hmsc.Minutes); |
| 100 | table.add(hmsc.Seconds); |
| 101 | table.add(hmsc.Centiseconds); |
| 102 | return table; |
| 103 | } |
| 104 | |
| 105 | /// (int) Hours component. |
| 106 | // @mem h |
nothing calls this directly
no test coverage detected