PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GetMinutesAfterMidnight

Returns the number of minutes that have passed after midnight for the purposes of lighting.

This number will be nearly identical to Lighting/ClockTime multiplied by 60.

This number will not always be equal to the value given in Lighting/SetMinutesAfterMidnight as it returns minutes after midnight in the current day.

For Lightings time formatted as a string, see Lighting/TimeOfDay.

Returns

Return Type Summary

The number of minutes after midnight.


Code Samples


Lighting:GetMinutesAfterMidnight

game.Lighting.TimeOfDay = "14:00:00"
print(game.Lighting:GetMinutesAfterMidnight())