| Blockland Forums > Modification Help |
| Game Bar Discussion |
| << < (4/4) |
| Tom:
--- Quote from: Jeep on June 19, 2011, 04:34:12 PM ---Thats the only way to figure out Army Time. Hour - 12. --- End quote --- Or Hour % 12. It's actully a much simpler way of doing it in script because you don't need to check if the hour is over 12. |
| Destiny/Zack0Wack0:
--- Quote from: Tom on June 19, 2011, 06:32:11 PM ---Or Hour % 12. It's actully a much simpler way of doing it in script because you don't need to check if the hour is over 12. --- End quote --- Yeah, what I was going to say. Something like this will work: --- Code: ---%time = (%hour24 % 12) @ (%hour24 >= 12 ? "pm" : "am"); --- End code --- |
| Navigation |
| Message Index |
| Previous page |