Author Topic: Download This DateDiff Demo Brain  (Read 4475 times)

Don Ferguson

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
    • http://www.cortrapar.com
Download This DateDiff Demo Brain
« 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: Date Difference Demo Code Brain.uhp
12.08 KB
Don Ferguson
E-mail: fergusonrkfd@prodigy.net
Website: www.cortrapar.com
Don's other forum posts: http://www.zabaware.com/forum/search.asp?mode=DoIt&MEMBER_ID=274

Larry

  • Sr. Member
  • ****
  • Posts: 266
    • View Profile
Download This DateDiff Demo Brain
« Reply #1 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!