![]() |
Function getDayCountBetweenDates basing on Julian date. - Printable Version +- Gothic Online Forums (https://archive.gothic-online.com) +-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html) +--- Forum: Resources (https://archive.gothic-online.com/forum-14.html) +---- Forum: Scripts (https://archive.gothic-online.com/forum-17.html) +---- Thread: Function getDayCountBetweenDates basing on Julian date. (/thread-2337.html) |
Function getDayCountBetweenDates basing on Julian date. - Mattwell - 06.02.2018 Hi, I wrote short day counter between dates basing on Julian date algorithm. Function returns the difference of days between dates. USEFUL FOR PREMIUM ACCOUNTS OR ANOTHER THINGS Code: function getDayCountBetweenDates(d1d,d1m,d1y,d2d,d2m,d2y) Arguments: - d1d (int): day of first date - d1m (int): month of first date - d1y (int): year of first date - d2d (int): day of second date - d2m (int): month of second date - d2y (int): year of second date |