Does it have to be a unique algorithm and not like the known ones listed elsewhere? :-D
Ok, this isn't the prettiest, but it is functional and I have included two variations to get the longday.
Code - Auto/Visual Lisp: [Select]
(setq y 1812 m 2 d 20)
(lee_getday y m d) = "Sunday"
(ee_getday y m d) = "Tuesday"
(pBe_getday y m d) = "Friday"
(keith_doomsday y m d) = "Thursday"
:?Code: [Select](setq y 1812 m 2 d 20)
(lee_getday y m d) = "Sunday"
(ee_getday y m d) = "Tuesday"
(pBe_getday y m d) = "Friday"
(keith_doomsday y m d) = "Thursday"
:?Code: [Select](setq y 1812 m 2 d 20)
(lee_getday y m d) = "Sunday"
(ee_getday y m d) = "Tuesday"
(pBe_getday y m d) = "Friday"
(keith_doomsday y m d) = "Thursday"
Oops!
http://www.wolframalpha.com/input/?i=20.02.1812 (http://www.wolframalpha.com/input/?i=20.02.1812)
_$ (keith_doomsday 1812 2 20)
"Thursday"
_$ (pBe_getday 1812 2 20)
"Thursday"
_$ (lm:getday 1812 2 20)
"Thursday"
_$ (ee_getday 1812 2 20)
"Thursday"
It wouldn't be right if Evgeniy wasn't at the top :lol:
It wouldn't be right if Evgeniy wasn't at the top :lol:
Why? 8-)
You know this is so much easier in C++ or C#
The DateTime value type represents dates and times with values ranging from 12:00:00 midnight, January 1, 0001 Anno Domini (Common Era) through 11:59:59 P.M., December 31, 9999 A.D. (C.E.).
Excellent 8-)
I know the current Date 20150708 , 3 days later is 20150711
I want know the Date at 200 days later... , How write this ?
I know the current Date 20150708 , 3 days later is 20150711
I want know the Date at 200 days later... , How write this ?
This is probably the easiest way:Code - Auto/Visual Lisp: [Select]
I know the current Date 20150708 , 3 days later is 20150711
I want know the Date at 200 days later... , How write this ?
This is probably the easiest way:Code - Auto/Visual Lisp: [Select]
Lee, Inconceivable!
The current Date is Local time ? Can I use your Internet time function ? (LM:InternetTime "YYYYMODD")
No, you will need to either retrieve the Julian Date from the internet time server, add 200, and pass it to the edtime DIESEL function; or convert the date returned by my LM:InternetTime function to a Julian Date, before adding 200 and passing the resulting value to the edtime DIESEL function.
Lee
Tip: Use strcat to build the string for menucmd...
Tip: Use strcat to build the string for menucmd...
?? example ?
Tip: Use strcat to build the string for menucmd...
?? example ?Code - Auto/Visual Lisp: [Select]