So why is '1970-1-1' hard coded in and what does it mean? When i change it to '1971-1-1', it gives me a different number. How did the original developer know that it should be '1970-1-1'?
So when I try to convert a DATETIME back to a BIGINT, I got this far:
SET @milliseconds = DATEDIFF(MILLISECOND, @dteSecond, @dteMilli);
SELECT @milliseconds
SET @seconds = DATEDIFF(SECOND, @dteBegin, @dteSecond);
SELECT @seconds
At this point, do I just concatenate both back together?
in general when somebody does something
unless you have the whole picture
from him or her its hard to tell
things like context
or 1970-1-1 may have some significance
in what the whole programming is going on
WHY ?
HOW ?
in context of code
whats being done may help
maybe 1970-1-1 has some coding significance
or maybe 1970-1-1 has some BUSINESS Logic significance