Advanced

Re: Date function

Date function
September 01, 2018 06:42PM
Bonjour,
j'aimerais faire un script avec des calcule de date, en cherchant les scripts existants, j'ai vu ce code :
iso = Date.Format("yyyy-mm-dd")
local date = Date {}
date:add{ day = -conf.age }
local maxhidden = iso:tostring(date)
Mais je ne trouve aucune documentation sur les objets Date et les methodes associées.
Où puis-je trouver de la documentation ?

Google trad:
Hello,
I would like to make a script with date calculations, looking for existing scripts, I saw this code:
iso = Date.Format("yyyy-mm-dd")
local date = Date {}
date:add{ day = -conf.age }
local maxhidden = iso:tostring(date)
But I can not find any documentation on Date objects and related methods.
Where can I find documentation?

script : https://project-gc.com/Tools/Challenges?edit&addTag&scriptId=2704
Re: Date function
September 02, 2018 06:39PM
I am using this documentation for date objects.

http://stevedonovan.github.io/Penlight/api/index.html
Re: Date function
September 02, 2018 11:06PM
Thank you very much, it will help me a lot.
Sorry, you do not have permission to post/reply in this forum.