View Single Post
Old 03-03-2005   #6 (permalink)
Cakkie
Registered Member
 
Join Date: Mar 2005
Posts: 12
Well, the problem with the FILETIME is that as far as I know, PHP does not have a easy way to handle it, like in VB or C. PHP uses the unix time epoch to handle date/times (number of seconds since 1/1/1970).

As for the channel bits, those should be looked at through binary goggles .

Say you have a value of 2240, it means that channels 11, 7 and 6 were used:
2240 in binary: 00000000 00000000 00001000 11000000

giving:
bit 0 = 0 -> chan 0? not used
bit 1 = 0 -> chan 1 not used
bit 2 = 0 -> chan 2 not used
...
bit 6 = 1 -> chan 6 was used
bit 7 = 1 -> chan 7 was used
bit 8 = 0 -> chan 8 not used
...
bit 11 = 1 -> chan 11 was used
...
Cakkie is offline   Reply With Quote