Flipi Posted September 1, 2013 Share Posted September 1, 2013 Hi, how to make a script to display the day?. help me please ... Link to comment
Castillo Posted September 1, 2013 Share Posted September 1, 2013 What do you mean by "the day"? you mean the real day name? Link to comment
RainBow Posted September 1, 2013 Share Posted September 1, 2013 if you mean display the time you can do something like Local Displaytime = getTime () Link to comment
Flipi Posted September 1, 2013 Author Share Posted September 1, 2013 What do you mean by "the day"? you mean the real day name? yes (sunday, monday ....) Link to comment
Castillo Posted September 1, 2013 Share Posted September 1, 2013 local weekdays = { [ 1 ] = "Sunday", [ 2 ] = "Monday", [ 3 ] = "Tuesday", [ 4 ] = "Wednesday", [ 5 ] = "Thursday", [ 6 ] = "Friday", [ 7 ] = "Saturday" } function getDayName ( ) local realTime = getRealTime ( ) return weekdays [ realTime.monthday ] end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now