Page 1 of 1

Undocumented Date Functions

Posted: Tue Oct 26, 2021 7:11 am
by gtonkin
Found some useful functions after a bit of sleuthing:

Sample TI process:

Code: Select all

sYear=YRS(TODAY);
sMonth=MOS(TODAY);
sDay=DYS(TODAY);
asciioutput('debug.txt',sYear, sMonth, sDay);
Gives you:
"2021","OCT","26"

The return of the 3 character month is the kicker for me!
Works in TI and Rules. All three functions return string values.
Looks like they have been available since 8.4.2 and work in PA 2.0.9.9.

Re: Undocumented Date Functions

Posted: Tue Oct 26, 2021 3:04 pm
by scrumthing
nice findings... Thanks George!

Re: Undocumented Date Functions

Posted: Wed Oct 27, 2021 7:34 am
by Mark RMBC
Am I the only one slightly gobsmacked by this?

Anyway George, we will start calling you Sherlock.

regards,

Mark

Re: Undocumented Date Functions

Posted: Wed Oct 27, 2021 12:23 pm
by Steve Rowe
Astounding! Good work George

Re: Undocumented Date Functions

Posted: Thu Oct 28, 2021 6:04 pm
by Wim Gielis
Mark RMBC wrote: Wed Oct 27, 2021 7:34 amAnyway George, we will start calling you Sherlock.
I have a successor :lol:
viewtopic.php?f=3&t=14417&p=71271

I was called Van der Valk in that topic :)

Well done George

Re: Undocumented Date Functions

Posted: Fri Oct 29, 2021 7:25 am
by Mark RMBC
Wim - I always thought you deserved that title after you figured this out:

viewtopic.php?t=13317