TPT clock

  • mniip
    28th Oct 2011 Developer 0 Permalink

    gamax92:

    2. I have ideas but dont know how to implement them.



    I know how t implement but dont have ideas lol
  • jacob1
    28th Oct 2011 Developer 0 Permalink

    If you want, you can use the code that draws the date in my script. It has a 12-hour clock and tells the day of the week and month in words instead of numbers.

    local date = os.date("*t") if date["hour"] > 12 then date["hour"] = date["hour"] - 12 end
       local function getweekday(weekday)
          if weekday == 1 then return "Sun." elseif weekday == 2 then return "Mon." elseif weekday == 3 then return "Tue." elseif weekday == 4 then return "Wed." elseif weekday == 5 then return "Thur." elseif weekday == 6 then return "Fri." elseif weekday == 7 then return "Sat." end
       end
       local function getmonth(month)
          if month == 1 then return "Jan." elseif month == 2 then return "Feb." elseif month == 3 then return "March" elseif month == 4 then return "April." elseif month == 5 then return "May" elseif month == 6 then return "June" elseif month == 7 then return "July" elseif month == 8 then return "Aug." elseif month == 9 then return "Sept." elseif month == 10 then return "Oct." elseif month == 11 then return "Nov." elseif month == 12 then return "Dec." end
       end
       local datetext = string.format("%s %s %i, %i %i:%.2i:%.2i",getweekday(date["wday"]),getmonth(date["month"]),date["day"],date["year"],date["hour"],date["min"],date["sec"])
      

  • BlueAmulet
    28th Oct 2011 Member 0 Permalink

    Deleted

    Edited once by BlueAmulet. Last: 13th April
  • Vou-II
    28th Oct 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • Atrayin
    28th Oct 2011 Member 0 Permalink
    i deleted the lua and its still there...
  • Vou-II
    28th Oct 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • Shriek
    28th Oct 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • BlueAmulet
    28th Oct 2011 Member 0 Permalink

    Deleted

    Edited once by BlueAmulet. Last: 13th April
  • jenn4
    28th Oct 2011 Member 0 Permalink

    gamax92:

    @Shriek!174748
    Was that Three lettered, all caps, not even a word post needed here?
    Spam.
  • Atrayin
    28th Oct 2011 Member 0 Permalink
    @Vou-II (View Post)
    No i only had 1 autorun? anyways i deleted it and itstayed there...