Page 1 of 1
date/time format
Posted: Sat Nov 18, 2006 8:43 am
by tony
Is there a date/time format variable for tenths of a second?
ie %y = year
Thanks
Tony
Posted: Sat Nov 18, 2006 8:52 am
by cordel
The best I can do is give you a link to the resources.
http://datetime.perl.org/?Resources
I'll be going through it just because you raised my curiosity. First one to post the answer wins
Cheers,
Corey
Posted: Sat Nov 18, 2006 9:11 am
by cordel
The info I found
here suggests that it is possible.
Regards,
Corey
Posted: Sat Nov 18, 2006 9:59 am
by tony
looking here:
http://www.gsp.com/cgi-bin/man.cgi?sect ... te::Format
doesn't seem to show a variable for fractions of a second, and I'm not sure what it is on the link you gave that shows it is possible?
Thanks
Tony
Posted: Sat Nov 18, 2006 10:14 am
by cordel
Opp's
Had my font to small. I thought I seen hh:mm:ss:tt but NOT
I just was not close enough to my screen.
Guess I lose
Cheers,
Corey
Posted: Mon Nov 20, 2006 10:51 pm
by zoneminder
There is no format specifier for this, as the time that is passed into the date functions (and the time in perl, Linux in general) only has 1 second precision. ZM uses some tricks internally to be more precise but it's all a bit of a hack. I may be able to fake fractional seconds but it's not as trivial as just putting in a different format spec I'm afraid.
Posted: Tue Nov 21, 2006 7:44 am
by tony
Thanks, someone was asking if zm could be used to find the speed of a vehicle as it passed the camera, I thought of counting the frames but the frame speed seems to build up to the target speed over a short time so the other way i thought of was to count the tenths of a second over a set distance.
Tony
Posted: Tue Nov 21, 2006 9:22 am
by jameswilson
i think the only way to do this is to have a special motion detector with 2 points that calculates the speed of the target. It would need to be a big targhet mind, ie a zoomed in view. But im afraid i dont know how i just suggested it a few months back.
Posted: Thu Nov 23, 2006 10:55 am
by zoneminder
The frames are saved in the database with a precision of .01 second, though I'm not sure how this would stand up in legal terms. To view these values just click on one of the frames totals in the events list.