Re: Number of Years
- From: "Richard G. Riley" <rgrdev@xxxxxxxxx>
- Date: Mon, 13 Mar 2006 00:40:16 +0100
On 2006-03-12, Keith Thompson <kst-u@xxxxxxx> wrote:
"Richard G. Riley" <rgrdev@xxxxxxxxx> writes:It
On 2006-03-12, Keith Thompson <kst-u@xxxxxxx> wrote:[...]
What are you unimpressed about? The standard specifically says thatwhat
an implementation is allowed to add extra members. I don't know
Sigh. Its not easy here.
I'm not impressed because the dcoumentaion is different from the
implementation on a live development system.
Ok, so the documentation shows the members of struct tm that are
specified in the standard, but the implementation (for whatever
reason) has some extra members. I don't have a problem with that.
Thats a relief.
might be nice for the man page to mention the extra members *if and
only if* it makes it clear that they're not standard, and that any
code that attempts to use them will be non-portable.
Actually it should mention them all the time : otherwise how the hell
will the programmer know what the hell they're for on that platform?
the man page says; it could follow either the standard or the
system-specific definition (if it does the latter, it should
acknowledge that two of the fields are implementation-defined.
Reading n1124 (or some other draft of the standard) would have avoided
this confusion.
It would : but wouldnt have made one iota of difference to *my*
system. And since the OPs requirement was contained within the
standard there was no confusion : until you bought one up.
You were the first one to mention the extra members (tm_gmtoff and
tm_zone) because you chose to show us the output of your debugger.
Actually I never "mentioned them" directly : you bought attention to
them. I also mentioned that I couldnt state platform independance.
You bought them up just to make a point about the standards. Again.
So you have dragged a bit of sample code, that showed typical values
down to a slanging match over some platform independant fields which
had nothing to do with the required solution. I salute you.
But you would agree this is a tidier way of solving this problem?
If by "this" you mean using a debugger, no. If you mean using
Whyt would I be referring to using a debugger? Are you always this
purposely obtuse? Of course I'm referring to the use of localtime
instead of oodles of seconds calculations.
You've been misunderstood enough times here that I'd think you'd allow
for the possibility that you're unclear.
Yawn. Petty and spiteful. I am surprised. And also untrue. Want to be
confused? Dress up as a newbie and go back to that globals chat.
It was perfectly obvious that I didnt mean the debugger "solved the
problem". How the hell does a debugger make reference to the correct
data structure and write sample code to get the guy going? Do you have
a cupboard full of Pedant medals?
localtime() rather than doing arithmetic on time_t values, I've
already addressed that point in this thread.
'Fraid I never saw it.
GIYF.
Please dont use acronyms. It makes you angry.
--
Debuggers : you know it makes sense.
http://heather.cs.ucdavis.edu/~matloff/UnixAndC/CLanguage/Debug.html#tth_sEc
.
- Follow-Ups:
- Re: Number of Years
- From: Keith Thompson
- Re: Number of Years
- References:
- Number of Years
- From: Gregc.
- Re: Number of Years
- From: David Paleino
- Re: Number of Years
- From: Richard G. Riley
- Re: Number of Years
- From: Keith Thompson
- Re: Number of Years
- From: Richard G. Riley
- Re: Number of Years
- From: Keith Thompson
- Re: Number of Years
- From: Richard G. Riley
- Re: Number of Years
- From: Keith Thompson
- Number of Years
- Prev by Date: Re: Number of Years
- Next by Date: Re: [OT] Re: give me some tips
- Previous by thread: Re: Number of Years
- Next by thread: Re: Number of Years
- Index(es):
Relevant Pages
|