Results 1 to 4 of 4

Thread: Lua time calculations

  1. #1
    Join Date
    Nov 2002
    Posts
    9

    Default Lua time calculations

    I am currently writing a lua script that deals in time calculations of the form YYYYMMDDHHMMSS. Is there anything in lua, or other already completed functions that calculate the difference between dates in a similar format?

    Thanks for the help

  2. #2
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    You could look on the lua users site and see. I do not remember seeing anything along those lines though.

    Do you know how to use the lua date function?

  3. #3
    Join Date
    Nov 2002
    Posts
    9

    Default

    I'm retrieving the time with the date function. I need to find the difference between what the date function returns, and what a set time value in the same format is. What I didn't want to do was code up the values for subtracting each month, and was hoping this was already done.

  4. #4
    Join Date
    May 2012
    Posts
    1

    Default You may want to check this out. Date.lua

    I found this a while back. Lua forge has a project called date Date.lua seems to provide the functions needed.

    I can not post the web link but do a google search... Luaforge projects date

    Eddy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •