0 Members and 1 Guest are viewing this topic.
Excellent
I know the current Date 20150708 , 3 days later is 20150711I want know the Date at 200 days later... , How write this ?
Quote from: AIberto on July 08, 2015, 08:49:49 AMI know the current Date 20150708 , 3 days later is 20150711I want know the Date at 200 days later... , How write this ?This is probably the easiest way:Code - Auto/Visual Lisp: [Select](menucmd "m=$(edtime,$(+,$(getvar,date),200),YYYYMODD)")
Quote from: Lee Mac on July 08, 2015, 01:17:17 PMQuote from: AIberto on July 08, 2015, 08:49:49 AMI know the current Date 20150708 , 3 days later is 20150711I want know the Date at 200 days later... , How write this ?This is probably the easiest way:Code - Auto/Visual Lisp: [Select](menucmd "m=$(edtime,$(+,$(getvar,date),200),YYYYMODD)")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...
Quote from: roy_043 on July 10, 2015, 04:01:14 AMTip: Use strcat to build the string for menucmd...?? example ?
Quote from: AIberto on July 10, 2015, 11:39:47 AMQuote from: roy_043 on July 10, 2015, 04:01:14 AMTip: Use strcat to build the string for menucmd...?? example ?Code - Auto/Visual Lisp: [Select](setq tm (LM:InternetTime "YYYYMODD"))(setq tm (DTOJ (atof tm)))(menucmd (strcat "m=$(edtime,$(+," (rtos tm 2 0) ",200),YYYYMODD)" ))