Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: Don Ferguson on September 29, 2003, 10:51:41 am

Title: Download This DateDiff Demo Brain
Post by: Don Ferguson on September 29, 2003, 10:51:41 am
Hello,

The "DateDiff" function in VBS allows you to calculate the difference between any two valid date strings, and return the answer in units of quarters, months, weeks, days, hours, minutes, or even seconds!

This is in response to a request for a "timer" that would measure the time since the last user response, even if the last response was days ago (the computer must be running during that time of course).

The demo file shows the code to use the "DateDiff" function; Hal simply states the time in seconds since the last time that you said anything.

The demo code in the script that makes this happen should be pretty much self explanatory.

I hope that this is of some interest and value to you.

Sincerely,

Don

Download Attachment: (http://images/icon_paperclip.gif) Date Difference Demo Code Brain.uhp ("http://www.zabaware.com/forum/uploaded/Don Ferguson/2003929105120_Date Difference Demo Code Brain.uhp")
12.08 KB
Title: Download This DateDiff Demo Brain
Post by: Larry on September 29, 2003, 05:41:22 pm
OMG!!! And I had 1000 and 1 lines of code to do what took you 3 lines...

Bartender - get him anything he wants!

Thanks Don!