Added test for OS based functions

This commit is contained in:
ketank-new 2017-01-04 17:45:19 +05:30 committed by GitHub
parent 1fe2176241
commit b92584b497

View File

@ -174,3 +174,10 @@ io.write("Random number between 1 and 100 is ",math.random(1,100),"\n")
--io.write("Maximum in the input array is ",math.max(1,100,101,99,999),"\n") --io.write("Maximum in the input array is ",math.max(1,100,101,99,999),"\n")
--io.write("Minimum in the input array is ",math.min(1,100,101,99,999),"\n") --io.write("Minimum in the input array is ",math.min(1,100,101,99,999),"\n")
print("********************************************") print("********************************************")
print("****************OS Functions *******")
io.write("The date is ", os.date("%m/%d/%Y"),"\n")
io.write("The date and time is ", os.date(),"\n")
io.write("The OS time is ", os.time(),"\n")
io.write("Lua started before ", os.clock(),"\n")
print("********************************************")