![]() :: Parse (Gregorian) date depending on registry's date format settings :: and converted to batch code by Ron Bakowski. :: provided by Doctor Fenton on the Math Forum :: algorithm from the Astronomical Almanac, :: Algorithm based on Fliegel-Van Flandern :: Convert Julian date back to "normal" Gregorian date :: Return the result in a variable named after this batch file :: Convert the new Julian date back to Gregorian again ![]() :: Add or subtract the specified number of days ![]() :: Convert the parsed Gregorian date to Julian :: Check if the second argument is a valid number :: Read the Date format from the registry (CREDITS FOR THE AUTHOR OF CODE: ROBVANDERWOUD) OFF (Ruby, Python, Perl, all what you want less Batch)īy the way exist some ultra advanced aricmetics batfile codes wrote by RobVanDeerWoud to "play" with things, for example with this script you can add "X" days to a date, take a look to see if you can modify to deduct days: So you need a realistic scripting language who can acces to the Microsoft.Time and data library and do the comparision. 1st - why you try to delete first the files, and next the tolfer? If you delete the folder first you are doing the same thing in less time.Ģnd - I THINK You can't do that in Batch, not without errors, you need to extract (know) the calendar days for at least the "X" years you need to use in your purposes, and Batch don't have any way to extract that info, or to be a math genious to know how to take the calendar dates of past years.
0 Comments
Leave a Reply. |