This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Saving a date
#7
(12.06.2018, 07:08)admin Wrote: You should use bit operations Smile
Code:
OCT05 = bit.bor(bit.lshift(now.wday, 5), now.hour)

I was looking for this but could not figure it out so soon, the solution with functions works but your solution is cleaner (:

I updated the sample

Thanks!

BR,

Erwin
Reply


Messages In This Thread
Saving a date - by RSV4 - 03.09.2015, 08:57
RE: Saving a date - by admin - 03.09.2015, 09:11
RE: Saving a date - by gtsamis - 11.06.2018, 15:34
RE: Saving a date - by Erwin van der Zwart - 11.06.2018, 22:51
RE: Saving a date - by RSV4 - 03.09.2015, 09:25
RE: Saving a date - by admin - 12.06.2018, 07:08
RE: Saving a date - by Erwin van der Zwart - 12.06.2018, 12:18

Forum Jump: