Skip to main content
19-Tanzanite
October 3, 2010
Question

Date Calendar and Time functions.mcd

  • October 3, 2010
  • 21 replies
  • 13745 views

Here is a selection of functions for dates, calendars, and times. Also included is a calendar component that allows a date to be selected by the user. The scripted components were all written by me, but the additional functions at the end of the worksheet were not. In fact, I don't know who did write some of them, but if the author of those functions, or someone who knows who the author is, reads this then please let me know who did write them so I can credit them correctly.

Jun 09 2015: Added a worksheet for Mathcad Prime. This includes only the limited set of functions not based on scripted components.

21 replies

23-Emerald V
December 20, 2021

@RichardJ wrote:

Here is a selection of functions for dates, calendars, and times. Also included is a calendar component that allows a date to be selected by the user. The scripted components were all written by me, but the additional functions at the end of the worksheet were not. In fact, I don't know who did write some of them, but if the author of those functions, or someone who knows who the author is, reads this then please let me know who did write them so I can credit them correctly.

 


This need for speed ... sorry, date-time in Prime ... cropped up again, recently.

 

https://community.ptc.com/t5/PTC-Mathcad/Date-update-in-Mathcad-Prime/m-p/763808#M198782

https://community.ptc.com/t5/PTC-Mathcad/Current-Date-in-Mathcad-prime/m-p/763761#M198774

 

To cut a short story long, in response to the OPs, @VladimirN posted Original Mathcad worksheets containing some date and time functions.  However, as an Express-only user, I couldn't do much with them.   Then, over the weekend, I remembered that I'd converted my old worksheet collection into Prime the last time I had a trial licence, and found a similar-looking file.   So, I had a brief look at Expressifying it.   

 

I then looked for a suitable home for the resulting worksheet and found this thread, which looks like the source of the original material.   So, @RichardJ @terryhendicott , еще раз спасибо for the originals.

 

And еще раз, I lament the inability to hide quote marks in Mathcad strings ... or to have a handy selection of symbols that numerically evaluate to themselves (apart from decimal digits and NaN (*) - ISTR that π in the units placeholder would stay as π in M15?

 

As proof of the (soon-to-be-Christmas) pudding, here's a 2022 Mathcad calendar.

2021 12 20 a.png

 

And by way of Благодарность to Vladimir, 

2021 12 20 b.png

 

Stuart

 

(*) Why, oh why, oh why, do we еще, in this day and age, have infinity defined as 10^308 instead of a proper IEEE ∞ represented as such? 👿

 

Are there any other major maths applications where infinity is less than the maximum representable number?

2021 12 20 b.png

Which millions of fee-paying customers are going to be taking to the streets with pitchforks and baying for blood because their myriads of worksheets depend upon 10^308 and no workaround (like automatic conversion upon loading) will suffice?   Not the ones using symbolics, I imagine ...

 

And, yes, I do declare today as International Snarkiness Day because I've been bitten yet again by lack of a proper infinity and by the 15-decimal-place restriction.  I hope, as a mark of solidarity, you all mark it as such in your Mathcad Calendars.  😈