Hi, I wrote a script for date arithmtic handling using floating point patch. I didn't have problems using gVim 3.1.319 +float compiled on Windows 98 with Borland C++ 5.5.1
<http://patrick.texier.free.fr/datecalc.vim>. I'm using Julian Days (number of days since 1 Jan 4712 B.C. 12:00 UT). Calendar is Julian before 04/10/1582 and Gregorian afterwards. Usage: :so datecalc.vim :echo Date2jd("22/06/2008") 2454639.5 :echo Jd2date(2450000.5) 10/10/1995 :echo DayOfWeek("22/06/2008") . " 22/06/2008" Sunday 22/06/2008 :echo "Today + 100 days = " . AddDays("22/06/2008", 100) Today + 100 days = 30/09/2008 :echo "2009 Easter = " . DayOfWeek(Easter(2009)) . " " . Easter(2009) 2009 Easter = Sunday 24/04/2009 :echo "Today=" . Days("31/12/2007", "22/06/2008") . "th day of 2008" Today=174th day of 2008 Very usefull for work on Frenchs dates from 1793 to 1806, the French Republican Calendar : :echo "30 frimaire VII=" . Fr2date("30/FRIM/07") 30 frimaire VII=20/12/1798 :echo "01/09/1802=" . Date2fr("01/09/1802") 30/01/1802=10/FRUC/10 -- Patrick Texier --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
