in reply to time difference in milliseconds

btw, since you're using padding your fields with 0s, you can use lt (or eq) on their string form if all you really want to do is find the smaller one (or equality). It probably isn't, but just in case.