Patent ID: 7366287
Filing Date: 2008-04-29
Classification: G06F

Abstract:
1. A method for converting a current time and a Gregorian date comprising a current year, a current month, and a current day into an epoch time stamp, comprising: receiving the current time and the Gregorian date; determining a number of seconds that have elapsed since a predetermined date up until, but not including, the current year; determining whether the current year is a leap year; determining a number of seconds that have elapsed since the beginning of the current year up until, but not including, the current month, based on whether the current year is a leap year; calculating a number of seconds that have elapsed since the beginning of the current month up until, but not including, the current day; calculating a number of seconds that have elapsed during the current day; summing the determined number of seconds since the predetermined date, the determined number of seconds since the beginning of the current year, the calculated number of seconds since the beginning of the current month, and the calculated number of seconds during the current day to obtain a converted time; determining whether Daylight Savings Time is in effect; and when Daylight Savings Time is not in effect, adding 3600 seconds to the converted time; wherein the converted time is the epoch time stamp, which comprises the number of elapsed seconds since the predetermined time.