40 | 40 | If you pass nothing for the `output` parameter, the date and time are placed into a new table and returned. If you pass something for the `output` parameter, it must be a table. It will have its '`year`', '`month`', '`day`', '`hour`', '`min`', and '`sec`' fields set to the current time, using opIndexAssign metamethods if necessary. The return value will then become the table that you passed in. The option to pass in a table to take the output is to make it faster if you need to keep getting the time over and over, instead of requiring a memory allocation each time. |
---|