delorie.com/archives/browse.cgi | search |
From: | "Alex Vinokur" <alexvn AT bigfoot DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: mktime() for 1969 & 2106 |
Date: | Tue, 21 May 2002 12:11:55 +0200 |
Organization: | Scopus |
Lines: | 49 |
Message-ID: | <acd2tf$o6odm$1@ID-79865.news.dfncis.de> |
References: | <acd27n$oa801$1 AT ID-79865 DOT news DOT dfncis DOT de> |
NNTP-Posting-Host: | gateway.scopus.net (62.90.123.5) |
X-Trace: | fu-berlin.de 1021972207 25387446 62.90.123.5 (16 [79865]) |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Newsreader: | Microsoft Outlook Express 6.00.2600.0000 |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
"Alex Vinokur" <alexvn AT bigfoot DOT com> wrote in message news:acd27n$oa801$1 AT ID-79865 DOT news DOT dfncis DOT de... | Here is some wrapper around mktime(). | [snip] | | // ========================= | time_t get_mktime ( | int year_i, | int month_i, | int day_i, | int hour_i, | int min_i, | int sec_i | ) | { [snip] | | // --------------------- | tzset (); | ret_mktime = mktime (&tm_time); ==================================== // The piece of the code below is not wanted here. // It does nothing. | if (ret_mktime < 0) | { | cout << "Cannot execute mktime, return value = " | << ret_mktime | << endl; | | } ==================================== | | // --------------------- | return ret_mktime; | | } // get_mktime () | [snip]
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |