Hi All,
Hopefully someone will have a quick info to this. I am trying to figure out how many days it has been since Jan 1, 1968 using the timelocal function. I can figure out how many days it is between Jan 1, 1968 to whatever date the epoch is in perl (I'll just hardcode the difference in the script then and add to the number I retrieve from timelocal afterwards). I have a function created to accept 2 dates and find out how many days are between the 2 dates. When I pass in the parameters to the timelocal function to get how many seconds from Jan 1, 1970 is Jan 1, 1970 I was hoping to get 0 but instead I get 18000. What parameters do I need to pass in to get 0 seconds back (this will be a generic function so I want to pass in the values I need to get 0). Also when I run the timelocal function with some other parameters I have I was hoping to get a whole number back for when I get a number from timelocal and then divide by 60*60*24. I've tried using 0 for seconds, minutes, and hours and the proper day, month, and year but I keep getting numbers that give decimals after dividing by 60*60*24. Any help would be greatly appreciated.
Rob