For systems lacking timegm() More...
#include "config.h"
#include <stdbool.h>
#include <time.h>
Go to the source code of this file.
Functions | |
static bool | is_leap_year (int year) |
Is this a Leap Year? | |
static time_t | tm_to_sec (struct tm *tm) |
Convert a time structure to number of seconds since the epoch. | |
time_t | timegm (struct tm *tm) |
Convert struct tm to time_t seconds since epoch. | |
For systems lacking timegm()
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file timegm.c.
|
static |
|
static |
Convert a time structure to number of seconds since the epoch.
tm | Time structure |
num | Seconds since the epoch |
Definition at line 49 of file timegm.c.
time_t timegm | ( | struct tm * | tm | ) |
Convert struct tm to time_t seconds since epoch.
tm | Time to convert to seconds since epoch |
num | Seconds since epoch |
Definition at line 70 of file timegm.c.