Author Topic: Time bomb  (Read 6554 times)

0 Members and 1 Guest are viewing this topic.

matrix2005in

  • Guest
Re: Time bomb
« Reply #15 on: July 04, 2006, 02:49:32 PM »
HI andrea

thats a gr8 idea...but how this will work...i mean how i can read the date from this??

thanks

mathew

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
Re: Time bomb
« Reply #16 on: July 04, 2006, 05:31:59 PM »
Mathew, like so....just reverse the process he used.
Code: [Select]
;; I would still use "date" in lieu of "cdate" since you can easily
;; add/subtract days from it without worrying about spanning months & years

(setq cdate (+ 113877 (read (vl-list->string (reverse (vl-string->list (rtos (getvar "date") 2 0)))))))
(vl-registry-write "HKEY_CURRENT_USER\\Software\\WinSpec00" "Data" cdate)

(setq regdate (vl-registry-read "HKEY_CURRENT_USER\\Software\\WinSpec00" "Data"))
(setq regdate (read (vl-list->string (reverse (vl-string->list (rtos (- regdate 113877) 2 0))))))

matrix2005in

  • Guest
Re: Time bomb
« Reply #17 on: July 04, 2006, 05:35:06 PM »
thanks jeff

you are right better to use date..that's very good to easy substraction....yo yo its more better

thanks

mathew

Andrea

  • Water Moccasin
  • Posts: 2372
Re: Time bomb
« Reply #18 on: July 04, 2006, 05:59:08 PM »
it called "reverse enginering".... :wink:
Keep smile...