Var += var, TimeunitsI guess, you only need a function to add/substract month. Ssec := (syear + smonth + sday + shour + smin + sec) * signīecause you can add days, hours, minutes and seconds via StringMid, OneNum, AddToDateTime, A_Index, 1 Loop 14 Test if AddToDateTime is numeric and StrLen is 14 StringMid, OutputVar, DateTime, A_Index, 1 Loop 14 Test if DateTime is numeric and StrLen is 14 StringReplace, AddToDateTime, AddToDateTime, -,ĪddToDateTime := FillLeft(AddToDateTime,0,14) Fill the left side of AddToDateTime with zeros StringLeft, LeftCharATDT, AddToDateTime, 1 MsgBox, There was a problem with AddDateTime MsgBox, % AddDateTime(NewFileTime, TimeToAdd) TimeToAdd = 10202000000 Add 1 year 2 months 2 days The idea is to calculate the seconds and adding them using the TimeUnits "Seconds". ![]() Here's an approch of me to solve this problem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |