Shoutbox

[REL] Date Calulator 2.99 - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [REL] Date Calulator 2.99 (/showthread.php?tid=83446)

[REL] Date Calulator 2.99 by SmokingCookie on 04-29-2008 at 10:05 AM

Hi,

I have developed a script, called Date Calculator.
No it's not to calculate how many chance you've got to get a date with someone :P (that's up to yourselfto find out :P ).

It can be used to calculate how many years, months, days, hours and even minutes and seconds are left to a certain date.

You can use the "/datecalc (SY)"-command to specify a date, or use the interface window (simply click "Specify a date to calculate" in the script's menu).

(SY) is to be replaced with the following syntaxis:

yyyy/MM/dd@hh:mm ss

yyyy = four-digit year value (e.g. 2008)
MM   = two-digit month value (e.g. 04 for April)
dd    = two-digit day value (e.g. 29 for the 29th of <Month>)

hh    = two-digit hour value (24-hour clock; e.g. 15 for 3:00 PM; Specify 00 for midnight. Do NOT specify 24)
mm   = two-digit minute value (e.g. 30 for half past <Hour>; must be < 60)
ss     = two-digit seconds value (e.g. 30 for half a minute; must be < 60)

Current public version doesn't feature an update function, but my internal (2.83) does.
Public version 2.99 has an update function.

For more informaton and downloads, see  my webpage.

Please use this thread for bug reports and suggestions (of course, I like comments.. Especially positive ones :P ).


RE: [REL] Date Calulator 2.99 by Bluestar on 06-30-2008 at 09:15 AM

I think theres the first bug report: date calculator fails calculating years between two dates. I think the months and days & maybe the time is calculated right only.

1) Screenshot - Input: http://img339.imageshack.us/img339/6679/1988122301il0.png
1) Screenshot - After Calculate: http://img208.imageshack.us/img208/6300/1988122302fv5.png

Then I've modified the month to 11 instead of 12:
2) Screenshot - After Calculate: http://img46.imageshack.us/img46/398/1988112302cv0.png

I'm using Windows XP Professional SP3 - Hungarian.
(Monday is the first day of the week there, and some other things arent the same as in USA / England, I dunno if it counts... maybe thats or something similar is the problem?)


RE: [REL] Date Calulator 2.99 by SmokingCookie on 06-30-2008 at 09:26 AM

I don't think this is a bug.
DC can only calculate forward, so in the 1st input ("19..") is wrong. I have programmed the script in such a way that it'll say "years left is 0" if you give it a "Year" which is smaller than this year (2008; 2009 for after Dec. the 31st etc.)

If I'd specify 31/12/2003 at 00.00.00, DC won't calculate years, but for '' 2008, it'll say:

[Image: screengk0.th.jpg]

(lol still have your translation enabled :P )


EDIT::

Good idea of yours (I) !!!!


RE: [REL] Date Calulator 2.99 by Bluestar on 06-30-2008 at 10:39 AM

Aah, now I see! :) I just thought this nice tiny script can be used to calculate how many years, months, days have passed since some1's birthday, etc - it would be nice to have such a function in it. Thanks for lighting me up! :D

edit: i cant see any vertical tabs in the script as it is on your screenshot. thats because you've made a screenshot of a newer version of script? :P


RE: [REL] Date Calulator 2.99 by SmokingCookie on 06-30-2008 at 10:43 AM

You've lit me up as well.. :P

You have just given me the idea to implement a backward calculator as well.. *-)

And "tiny script".. Well, it has many more features than I originally intended to write :P


RE: [REL] Date Calulator 2.99 by Bluestar on 06-30-2008 at 11:00 AM

Yeah, I know there are a lot of functions in the script, I meant tiny only for the size of it :)

It seems it is a lightish day... every1 lights up each other :D
Anyway I support the idea to implement a backward calculator, it could be used many times... but of course it means more work for you (A) :P


RE: [REL] Date Calulator 2.99 by SmokingCookie on 06-30-2008 at 04:36 PM

And for the translators since they'll need to translate more text strings :P (so for you as well :P )

EDIT::

The current version is 3.12 (I'll skip 3.13.....), the backward calculator is for 3.20 (at least), which won't be released very soon. It'll take lots of thinking and I'm currently too lazy :P