cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Date calculations

Highlighted
Newbie

Date calculations

is there a function or functions in MathCAD 11.2a that will calculate intervals using dates. e.g. days between dates, etc?

Seth Davis
8 REPLIES 8
Highlighted

Date calculations

See the Date - Time converter I just posted here:

http://collab.mathsoft.com/~Mathcad2000/read?57141,11

Richard
Highlighted

Date calculations

Here's yet another improved version.

Richard
Highlighted

Date calculations

I am sure that something like this has already been posted, but here is my version.
Highlighted

Date calculations

I don't think there has been such a comprehensive treatment though.

Incidentally, I think your Excel component is doing the same thing as the Vbscript component I wrote. I am guessing they even use the same code internally.

Richard

Date calculations

Here's a routine I posted in the "Astronomy and Navigation" collaboratory.

http://collab.mathsoft.com/read?45910,3e#45910

It takes the time(0) function and converts it into today's date. It had correct time when I posted it, but now it looks like it loses 1.5days/year.
-Is the time(0) function losing time, or are my calculations off?
-Maybe we can combine the time(0) function with the Julian date function to display the correct date.
-Maybe we can use a script to call a windows time function.
Highlighted

Date calculations

On 6/15/2004 12:03:16 PM, wetherel wrote:

>-Maybe we can use a script to
>call a windows time function.

I can do that.

Richard

Highlighted

Date calculations

On 6/14/2004 2:18:29 PM, sethrdavis wrote:
>is there a function or
>functions in MathCAD 11.2a
>that will calculate intervals
>using dates. e.g. days between
>dates, etc?
>
Once were among the quicksheets, I don't know if it's still there. But it does calculate wrong in some cases. At some point a couple of years ago I corrected the rutine - here it is...

But somebody strong in C should make a dll with time calculations.






Highlighted

Date calculations

Here is a quicksheet I got from the forum some time ago; it has two ways to calculate days between dates, using the Julian date and an Excel component.
Announcements