Re: Interesting date



On Feb 6, 10:17 am, Norman Peelman <npeel...@xxxxxxxxxx> wrote:
Allodoxaphobia wrote:
On Mon, 05 Feb 2007 11:09:58 GMT, Gunnar G wrote:
Now this is just a guess, but if 'june' comes from an array starting with
zero, so that 0=january, then 4=may and 5=june, it propably should start
from 1=january and in that case 5 would actually be may... If that doesn't
help, see the whole output of getdate with print_r() and post the result
here.

How can any one start counting from something else than zero in computer
applications?

Standards are GREAT. And, you have so many to chose from!

Thanks! I'm so very, very stupid.

I don't think so. As someone who has worked his way through *A LOT* of
programming languages since 1966, "Counting from 0/1" is just _one_ of
the 'standards' I never take for granted. (And, I _still_ screw up....)

Jonesy

I seem to remember that back in the C64 days you could actually tell
the script (program) to start at 0 or 1 if you wanted. I can't remember
what that command was though...

Norm

VB6 allowed you to put the "Option Base 1" directive at the top of a
module to achieve the same result. Scary that I remember that...

.



Relevant Pages

  • Re: G91 G28 Z0
    ... G28, Fanuc's zero return command, tends to be one of the more misunderstood ... G28 is a two-step command. ... Here's what can happen in absolute mode. ...
    (alt.machines.cnc)
  • Re: How to get the return code from a Unix command in Cobol
    ... It was zero if the command worked and non-zero ... But some commands return zero until I ... select myfile assign to external '$myfile' file status file-status. ... move 'make error' to compilation-result ...
    (comp.lang.cobol)
  • Re: Setting based 1 Arrays
    ... Generally I don't have documentation from last century on my PC so no I have no read it. ... some other areas of vb6 are most definately 1 based. ... Which areas are 1 based and which are zero based appears to be random. ... I probably would not have used it in our WCVB.BAS header interface file because it has the explicit lower and upper range defined for the arrays field we have. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Modification in the CODE to HIDE rows and columns that start with ZERO (code given)
    ... the user's job is to just hit the command button and not to select ... Sub ifzero() ... and columns that begin with the number ZERO. ... Dim SH As Worksheet ...
    (microsoft.public.excel.programming)
  • Re: *nix advice for assignment
    ... but quits when a zero is found. ... > Q2.sh should echo out each command line argument, ... echo out that it is exiting because the zero was ...
    (comp.unix.shell)